diff --git a/.goreleaser.yml b/.goreleaser.yml index 7665c308c1..03a99033ff 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -10,10 +10,12 @@ builds: env: - CGO_ENABLED=0 goos: + - aix - linux - freebsd - netbsd - windows + - darwin goarch: - 386 - amd64 @@ -32,10 +34,12 @@ builds: env: - CGO_ENABLED=0 goos: + - aix - linux - freebsd - netbsd - windows + - darwin goarch: - 386 - amd64 @@ -51,9 +55,10 @@ builds: archives: - id: s2-binaries - name_template: "s2-cmds_{{ .Version }}_{{ .Os }}_{{ .Arch }}" + name_template: "s2-{{ .Os }}_{{ .Arch }}_{{ .Version }}" replacements: - darwin: Darwin + aix: AIX + darwin: OSX linux: Linux windows: Windows 386: i386 @@ -69,7 +74,7 @@ archives: checksum: name_template: 'checksums.txt' snapshot: - name_template: "s2-cmds_{{ .Tag }}-next" + name_template: "{{ .Tag }}-next" changelog: sort: asc filters: @@ -82,7 +87,7 @@ changelog: nfpms: - - file_name_template: "s2-cmds_{{ .Version }}_{{ .Os }}_{{ .Arch }}" + file_name_template: "s2-Install_{{ .Version }}_{{ .Os }}_{{ .Arch }}" vendor: Klaus Post homepage: https://github.com/klauspost/compress maintainer: Klaus Post diff --git a/.travis.yml b/.travis.yml index 59e27475c6..5e4ce96ab5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,10 +18,8 @@ env: 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 ./... - CGO_ENABLED=1 go test -cpu=1,4 -short -race ./... @@ -32,10 +30,13 @@ jobs: - go: 'master' fast_finish: true include: - - stage: 386 linux test + - stage: misc one-off tests go: 1.16.x script: - - GOOS=linux GOARCH=386 go test -short ./... + - diff <(gofmt -d .) <(printf "") + - GOOS=linux GOARCH=386 go test -short ./... # test on 386/32 bits. + - curl -sfL https://git.io/goreleaser | VERSION=v0.157.0 sh -s -- check # check goreleaser config for deprecations + - curl -sL https://git.io/goreleaser | VERSION=v0.157.0 sh -s -- --snapshot --skip-publish --rm-dist - stage: arm64 tests arch: arm64 go: @@ -53,7 +54,6 @@ deploy: tags: true condition: $TRAVIS_OS_NAME = linux go: 1.16.x - branches: only: - master