1language: go
2
3os:
4  - linux
5  - osx
6
7go:
8  - 1.13.x
9  - 1.14.x
10  - 1.15.x
11  - master
12
13env:
14  - GO111MODULE=off
15
16install:
17 - go get ./...
18 - go get github.com/klauspost/compress-fuzz
19
20script:
21 - diff <(gofmt -d .) <(printf "")
22 - go test -cpu=2 ./...
23 - go test -cpu=2 -tags=noasm ./...
24 - go test -cpu=1,4 -short -race ./...
25 - 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
26
27jobs:
28  allow_failures:
29    - go: 'master'
30  fast_finish: true
31  include:
32    - stage: 386 linux test
33      go: 1.15.x
34      script:
35        - GOOS=linux GOARCH=386 go test -short ./...
36
37deploy:
38- provider: script
39  skip_cleanup: true
40  script: curl -sL https://git.io/goreleaser | VERSION=v0.127.0 bash || true
41  on:
42    tags: true
43    condition: $TRAVIS_OS_NAME = linux
44    go: 1.15.x
45