You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1019 B

language: go
os:
- linux
- osx
go:
- 1.12.x
- 1.13.x
- 1.14.x
- master
env:
- GO111MODULE=off
install:
- go get ./...
- go get github.com/klauspost/compress-fuzz
script:
- diff <(gofmt -d .) <(printf "")
- 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
- 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.14.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.14.x