Updated travis file

This commit is contained in:
Eduard Urbach 2018-04-26 02:43:23 +02:00
parent 021794052b
commit 7d4c4b9576

View File

@ -34,11 +34,11 @@ before_script:
- go get github.com/golang/lint/golint # Linter - go get github.com/golang/lint/golint # Linter
- go get honnef.co/go/tools/cmd/megacheck # Badass static analyzer/linter - go get honnef.co/go/tools/cmd/megacheck # Badass static analyzer/linter
- go get github.com/fzipp/gocyclo - go get github.com/fzipp/gocyclo
- go get -t ./... # Get dependencies
# script always run to completion (set +e). All of these code checks are must haves # script always run to completion (set +e). All of these code checks are must haves
# in a modern Go project. # in a modern Go project.
script: script:
- go get -t ./... # Get dependencies. Allow this to fail because components cannot be found.
- make all - make all
- test -z $(gofmt -s -l $GO_FILES) # Fail if a .go file hasn't been formatted with gofmt - test -z $(gofmt -s -l $GO_FILES) # Fail if a .go file hasn't been formatted with gofmt
# - go test -v . # Run all the tests # - go test -v . # Run all the tests