.travis.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. language: go
  2. os:
  3. - linux
  4. - osx
  5. go:
  6. - 1.12.x
  7. - 1.13.x
  8. - 1.14.x
  9. - master
  10. env:
  11. - GO111MODULE=off
  12. install:
  13. - go get ./...
  14. - go get github.com/klauspost/compress-fuzz
  15. script:
  16. - diff <(gofmt -d .) <(printf "")
  17. - IS_GO112=`go version | cut -d ' ' -f3 | grep 1.12`; if [ ! -z "$IS_GO112" ]; then echo 'Skipping vet on Go 1.12...'; else go vet ./...; fi
  18. - go test -cpu=2 ./...
  19. - go test -cpu=2 -tags=noasm ./...
  20. - go test -cpu=1,4 -short -race ./...
  21. - go build github.com/klauspost/compress/s2/cmd/s2c && go build github.com/klauspost/compress/s2/cmd/s2d && s2c s2c && s2d s2c.s2 && rm s2c && rm s2d && rm s2c.s2
  22. jobs:
  23. allow_failures:
  24. - go: 'master'
  25. fast_finish: true
  26. include:
  27. - stage: Build, Unit-Tests & Fuzz-Tests
  28. go: 1.13.x
  29. script:
  30. - ./fuzzit.sh local-regression
  31. - stage: Fuzzit (Fuzzing)
  32. if: branch = master AND type IN (push)
  33. go: 1.13.x
  34. script:
  35. - ./fuzzit.sh fuzzing
  36. - stage: 386 linux test
  37. go: 1.13.x
  38. script:
  39. - GOOS=linux GOARCH=386 go test -short ./...
  40. deploy:
  41. - provider: script
  42. skip_cleanup: true
  43. script: curl -sL https://git.io/goreleaser | VERSION=v0.127.0 bash || true
  44. on:
  45. tags: true
  46. condition: $TRAVIS_OS_NAME = linux
  47. go: 1.13.x