.travis.yml 541 B

123456789101112131415161718192021
  1. language: go
  2. go:
  3. - 1.5.4
  4. - 1.6.3
  5. go_import_path: google.golang.org/grpc
  6. before_install:
  7. - go get golang.org/x/tools/cmd/goimports
  8. - go get github.com/golang/lint/golint
  9. - go get github.com/axw/gocov/gocov
  10. - go get github.com/mattn/goveralls
  11. - go get golang.org/x/tools/cmd/cover
  12. script:
  13. - '! gofmt -s -d -l . 2>&1 | read'
  14. - '! goimports -l . | read'
  15. - '! golint ./... | grep -vE "(_string|\.pb)\.go:"'
  16. - '! go tool vet -all . 2>&1 | grep -vE "constant [0-9]+ not a string in call to Errorf"'
  17. - make test testrace