.travis.yml 713 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. language: go
  2. os:
  3. - linux
  4. - osx
  5. - windows
  6. arch:
  7. - amd64
  8. - arm64
  9. go:
  10. - 1.12.x
  11. - 1.13.x
  12. - 1.14.x
  13. - master
  14. script:
  15. - go vet ./...
  16. - go test -race ./...
  17. - go test -tags=noasm ./...
  18. stages:
  19. - gofmt
  20. - test
  21. matrix:
  22. allow_failures:
  23. - go: 'master'
  24. fast_finish: true
  25. include:
  26. - stage: gofmt
  27. go: 1.14.x
  28. os: linux
  29. arch: amd64
  30. script:
  31. - diff <(gofmt -d .) <(printf "")
  32. - diff <(gofmt -d ./private) <(printf "")
  33. - go install github.com/klauspost/asmfmt/cmd/asmfmt
  34. - diff <(asmfmt -d .) <(printf "")
  35. - stage: i386
  36. go: 1.14.x
  37. os: linux
  38. arch: amd64
  39. script:
  40. - GOOS=linux GOARCH=386 go test .