Skip to content

Commit

Permalink
Test releases in CI (#327)
Browse files Browse the repository at this point in the history
* Test releases in CI
* Just run as regular test.
* Clean up.
* Update builds
* Rename installers
  • Loading branch information
klauspost authored Mar 1, 2021
1 parent a1a0f5b commit 28598d9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
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

0 comments on commit 28598d9

Please sign in to comment.