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