.travis.yml 668 B

12345678910111213141516171819
  1. language: go
  2. go:
  3. - 1.16.x
  4. - 1.15.x
  5. go_import_path: github.com/nats-io/nats.go
  6. install:
  7. - go get -t ./...
  8. - go get github.com/mattn/goveralls
  9. - go get github.com/wadey/gocovmerge
  10. - go get -u honnef.co/go/tools/cmd/staticcheck
  11. - go get -u github.com/client9/misspell/cmd/misspell
  12. before_script:
  13. - $(exit $(go fmt ./... | wc -l))
  14. - go vet -modfile=go_test.mod ./...
  15. - find . -type f -name "*.go" | xargs misspell -error -locale US
  16. - staticcheck ./...
  17. script:
  18. - go test -modfile=go_test.mod -v -run=TestNoRace -p=1 ./... --failfast
  19. - if [[ "$TRAVIS_GO_VERSION" =~ 1.16 ]]; then ./scripts/cov.sh TRAVIS; else go test -modfile=go_test.mod -race -v -p=1 ./... --failfast; fi