mirror of
https://github.com/securego/gosec.git
synced 2024-12-26 04:25:52 +00:00
Update the build file with more checks
Validate the tool from go version 1.7 onward
This commit is contained in:
parent
6b28d5c0e6
commit
e385ab872f
1 changed files with 13 additions and 3 deletions
16
.travis.yml
16
.travis.yml
|
@ -1,15 +1,25 @@
|
||||||
language: go
|
language: go
|
||||||
before_script:
|
|
||||||
- go vet $(go list ./... | grep -v /vendor/)
|
|
||||||
go:
|
go:
|
||||||
- 1.5
|
- 1.7
|
||||||
|
- 1.8
|
||||||
|
- 1.9
|
||||||
- tip
|
- tip
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
- go get -u github.com/golang/lint/golint
|
||||||
- go get -v github.com/onsi/ginkgo/ginkgo
|
- go get -v github.com/onsi/ginkgo/ginkgo
|
||||||
- go get -v github.com/onsi/gomega
|
- go get -v github.com/onsi/gomega
|
||||||
- go get -v golang.org/x/crypto/ssh
|
- go get -v golang.org/x/crypto/ssh
|
||||||
|
- go get github.com/GoASTScanner/gas/cmd/gas/...
|
||||||
- go get -v -t ./...
|
- go get -v -t ./...
|
||||||
- export PATH=$PATH:$HOME/gopath/bin
|
- 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
|
script: ginkgo -r
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue