.travis.yml 609 B

123456789101112131415161718192021
  1. language: go
  2. sudo: false
  3. go:
  4. - 1.11.x
  5. - 1.10.x
  6. go_import_path: github.com/nats-io/go-nats
  7. install:
  8. - go get -t ./...
  9. - go get github.com/nats-io/gnatsd
  10. - go get github.com/mattn/goveralls
  11. - go get github.com/wadey/gocovmerge
  12. - go get -u honnef.co/go/tools/cmd/staticcheck
  13. - go get -u github.com/client9/misspell/cmd/misspell
  14. before_script:
  15. - $(exit $(go fmt ./... | wc -l))
  16. - go vet ./...
  17. - misspell -error -locale US .
  18. - staticcheck -ignore "$(cat staticcheck.ignore)" ./...
  19. script:
  20. - go test -i -race ./...
  21. - if [[ "$TRAVIS_GO_VERSION" =~ 1.11 ]]; then ./scripts/cov.sh TRAVIS; else go test -race ./...; fi