.travis.yml 693 B

1234567891011121314151617181920212223242526272829303132333435
  1. language: go
  2. sudo: false
  3. arch:
  4. - amd64
  5. - ppc64le
  6. go:
  7. - 1.16.x
  8. - 1.15.x
  9. install:
  10. - go get -t ./...
  11. - go get github.com/mattn/goveralls
  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 ./...
  19. script:
  20. - go test -v
  21. - go test -v --race
  22. - go test -v -covermode=count -coverprofile=coverage.out
  23. - $HOME/gopath/bin/goveralls -coverprofile coverage.out -service travis-ci
  24. #deploy:
  25. #- provider: script
  26. # skip_cleanup: true
  27. # script: curl -sL http://git.io/goreleaser | bash
  28. # on:
  29. # tags: true
  30. # condition: $TRAVIS_OS_NAME = linux