Turn Files into a streaming RPC, reduce maximum message size limit
[debiancodesearch.git] / .travis.yml
blobc71b9a09fb1493b65c8c6fe0eefeb7ec8997b501
1 # Use “sudo: false” once https://github.com/travis-ci/travis-ci/issues/5695 is
2 # resolved.
3 sudo: required
4 dist: trusty
6 language: go
8 go:
9   - 1.8
11 addons:
12   apt:
13     packages:
14     - libzmq3-dev
16 install:
17   - go get -t -v $(go list ./... | grep -v /vendor/)
19 script:
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
26 #  - go tool vet ./...