1 # Use “sudo: false” once https://github.com/travis-ci/travis-ci/issues/5695 is
17 - go get -t -v $(go list ./... | grep -v /vendor/)
20 - go test $(go list ./... | grep -v /vendor/)
21 # Check whether files are syntactically correct.
22 - "gofmt -l $(find . -path ./vendor -prune -o -name '*.go' -print | tr '\\n' ' ') >/dev/null"
23 # Check whether files were not gofmt'ed.
24 - "gosrc=$(find . -path ./vendor -prune -o -name '*.go' -print | tr '\\n' ' '); [ $(gofmt -l $gosrc 2>&- | wc -l) -eq 0 ] || (echo 'gofmt was not run on these files:'; gofmt -l $gosrc 2>&-; false)"
25 # TODO(stapelberg): re-enable after switching to gRPC