.travis.yml 705 B

1234567891011121314151617181920212223242526272829303132
  1. language: go
  2. sudo: false
  3. go:
  4. - 1.11
  5. - 1.10.x
  6. - 1.9.x
  7. install:
  8. - go get -t ./...
  9. - go get github.com/mattn/goveralls
  10. - go get -u honnef.co/go/tools/cmd/megacheck
  11. - go get -u github.com/client9/misspell/cmd/misspell
  12. before_script:
  13. - $(exit $(go fmt ./... | wc -l))
  14. - go vet ./...
  15. - misspell -error -locale US .
  16. - megacheck -ignore "$(cat staticcheck.ignore)" ./...
  17. script:
  18. - go test -v
  19. - go test -v --race
  20. - go test -v -covermode=count -coverprofile=coverage.out
  21. - $HOME/gopath/bin/goveralls -coverprofile coverage.out -service travis-ci
  22. #deploy:
  23. #- provider: script
  24. # skip_cleanup: true
  25. # script: curl -sL http://git.io/goreleaser | bash
  26. # on:
  27. # tags: true
  28. # condition: $TRAVIS_OS_NAME = linux