.travis.yml 655 B

1234567891011121314151617181920212223242526272829
  1. language: go
  2. go:
  3. - 1.15.2
  4. - tip
  5. matrix:
  6. allow_failures:
  7. - go: tip
  8. notifications:
  9. email:
  10. recipients: dean.karn@gmail.com
  11. on_success: change
  12. on_failure: always
  13. before_install:
  14. - go install github.com/mattn/goveralls
  15. - mkdir -p $GOPATH/src/gopkg.in
  16. - ln -s $GOPATH/src/github.com/$TRAVIS_REPO_SLUG $GOPATH/src/gopkg.in/validator.v9
  17. # Only clone the most recent commit.
  18. git:
  19. depth: 1
  20. script:
  21. - go test -v -race -covermode=atomic -coverprofile=coverage.coverprofile ./...
  22. after_success: |
  23. [ $TRAVIS_GO_VERSION = 1.15.2 ] &&
  24. goveralls -coverprofile=coverage.coverprofile -service travis-ci -repotoken $COVERALLS_TOKEN