Skip to content

Commit

Permalink
Update the build file with more checks
Browse files Browse the repository at this point in the history
Validate the tool from go version 1.7 onward
  • Loading branch information
ccojocar committed Feb 10, 2018
1 parent 6b28d5c commit e385ab8
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
language: go
before_script:
- go vet $(go list ./... | grep -v /vendor/)

go:
- 1.5
- 1.7
- 1.8
- 1.9
- tip

install:
- go get -u github.com/golang/lint/golint
- go get -v github.com/onsi/ginkgo/ginkgo
- go get -v github.com/onsi/gomega
- go get -v golang.org/x/crypto/ssh
- go get github.com/GoASTScanner/gas/cmd/gas/...
- go get -v -t ./...
- export PATH=$PATH:$HOME/gopath/bin

before_script:
- test -z "$(gofmt -s -l -w $(find . -type f -name '*.go' -not -path './vendor/*') | tee /dev/stderr)"
- test -z "$(golint . | tee /dev/stderr)"
- go vet $(go list ./... | grep -v /vendor/)
- gas ./...

script: ginkgo -r

0 comments on commit e385ab8

Please sign in to comment.