.travis.yml 767 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. language: go
  2. go:
  3. - 1.9
  4. - "1.10"
  5. - 1.11
  6. - 1.12
  7. - tip
  8. os:
  9. - linux
  10. - linux-ppc64le
  11. matrix:
  12. allow_failures:
  13. - go: tip
  14. install:
  15. - go get -v -t ./...
  16. before_script:
  17. - |
  18. if [[ $TRAVIS_GO_VERSION == 1.12 && $(arch) != 'ppc64le' ]]; then
  19. curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin
  20. fi
  21. script:
  22. - |
  23. if [ $(arch) == "ppc64le" ]; then
  24. go test -cpu 1,4 -v
  25. else
  26. go test -race -cpu 1,4 -v
  27. fi
  28. - |
  29. if [ $(arch) == "ppc64le" ]; then
  30. go test -v -tags appengine
  31. else
  32. go test -race -v -tags appengine
  33. fi
  34. - |
  35. if [[ $TRAVIS_GO_VERSION == 1.12 && $(arch) != 'ppc64le' ]]; then
  36. golangci-lint run
  37. fi
  38. sudo: false