.travis.yml 432 B

12345678910111213141516171819202122232425
  1. language: go
  2. go:
  3. - 1.7
  4. - 1.8
  5. - 1.9
  6. - "1.10"
  7. - 1.11
  8. - 1.12
  9. - tip
  10. matrix:
  11. allow_failures:
  12. - go: tip
  13. before_install:
  14. - "if [[ $TRAVIS_GO_VERSION == 1.11 ]]; then go get -u golang.org/x/lint/golint; fi"
  15. script:
  16. - go test -race -cpu 1,4 -v
  17. - go test -race -v -tags appengine
  18. - "if [[ $TRAVIS_GO_VERSION == 1.11 ]]; then go vet ./...; fi"
  19. - "if [[ $TRAVIS_GO_VERSION == 1.11 ]]; then golint .; fi"
  20. sudo: false