Skip to content

Commit e385ab8

Browse files
committed
Update the build file with more checks
Validate the tool from go version 1.7 onward
1 parent 6b28d5c commit e385ab8

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.travis.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
language: go
2-
before_script:
3-
- go vet $(go list ./... | grep -v /vendor/)
2+
43
go:
5-
- 1.5
4+
- 1.7
5+
- 1.8
6+
- 1.9
67
- tip
8+
79
install:
10+
- go get -u github.com/golang/lint/golint
811
- go get -v github.com/onsi/ginkgo/ginkgo
912
- go get -v github.com/onsi/gomega
1013
- go get -v golang.org/x/crypto/ssh
14+
- go get github.com/GoASTScanner/gas/cmd/gas/...
1115
- go get -v -t ./...
1216
- export PATH=$PATH:$HOME/gopath/bin
1317

18+
before_script:
19+
- test -z "$(gofmt -s -l -w $(find . -type f -name '*.go' -not -path './vendor/*') | tee /dev/stderr)"
20+
- test -z "$(golint . | tee /dev/stderr)"
21+
- go vet $(go list ./... | grep -v /vendor/)
22+
- gas ./...
23+
1424
script: ginkgo -r
1525

0 commit comments

Comments
 (0)