Skip to content

Commit ac24897

Browse files
author
Ryan Boehning
authored
Update travis to only test on Go 1.9 (#14)
Go 1.9 tools ignore vendor/. So this lets us replace all those ugly grep -v /vendor/ commands and just use ./..., e.g. go test ./...
1 parent 74ed9d9 commit ac24897

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.travis.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
language: go
22

33
go:
4-
- 1.7
5-
- 1.8
4+
- 1.9
65
- tip
76

87
# skip the install step. don't `go get` deps. only build with code in vendor/
@@ -18,14 +17,13 @@ notifications:
1817
email: false
1918

2019
before_script:
21-
- GO_FILES=$(find . -iname '*.go' | grep -v /vendor/)
22-
- PKGS=$(go list ./... | grep -v /vendor/)
20+
- GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/)
2321
- go get github.com/golang/lint/golint
2422
- go get honnef.co/go/tools/cmd/megacheck
2523

2624
script:
2725
- test -z $(gofmt -s -l $GO_FILES)
28-
- go test -v -race $PKGS
29-
- go vet $PKGS
30-
- megacheck $PKGS
31-
- golint -set_exit_status $PKGS
26+
- go test -v -race ./...
27+
- go vet ./...
28+
- megacheck ./...
29+
- golint -set_exit_status $(go list ./... | grep -v /vendor/)

0 commit comments

Comments
 (0)