Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test releases in CI #327

Merged
merged 7 commits into from
Mar 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ builds:
env:
- CGO_ENABLED=0
goos:
- aix
- linux
- freebsd
- netbsd
- windows
- darwin
goarch:
- 386
- amd64
Expand All @@ -32,10 +34,12 @@ builds:
env:
- CGO_ENABLED=0
goos:
- aix
- linux
- freebsd
- netbsd
- windows
- darwin
goarch:
- 386
- amd64
Expand All @@ -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
Expand All @@ -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:
Expand All @@ -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 <klauspost@gmail.com>
Expand Down
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./...
Expand All @@ -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:
Expand All @@ -53,7 +54,6 @@ deploy:
tags: true
condition: $TRAVIS_OS_NAME = linux
go: 1.16.x

branches:
only:
- master
Expand Down