travis: switch to go vet

This commit is contained in:
Michael Stapelberg 2019-04-29 18:42:29 +02:00
parent 844f528ed8
commit 82b41d1cc3

View File

@ -18,7 +18,7 @@ script:
# Check whether files were not gofmt'ed. # Check whether files were not gofmt'ed.
- "gosrc=$(find . -name '*.go' | tr '\\n' ' '); [ $(gofmt -l $gosrc 2>&- | wc -l) -eq 0 ] || (echo 'gofmt was not run on these files:'; gofmt -l $gosrc 2>&-; false)" - "gosrc=$(find . -name '*.go' | tr '\\n' ' '); [ $(gofmt -l $gosrc 2>&- | wc -l) -eq 0 ] || (echo 'gofmt was not run on these files:'; gofmt -l $gosrc 2>&-; false)"
# TODO: remove the || true suffix once vet errors are fixed # TODO: remove the || true suffix once vet errors are fixed
- go tool vet . || true - go vet . || true
- sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0 - sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0
- sudo ip -6 address replace ::1/128 dev lo - sudo ip -6 address replace ::1/128 dev lo
- go build ./cmd/... - go build ./cmd/...