Skip to content

Commit

Permalink
Merge branch 'master' of github.com:klauspost/compress
Browse files Browse the repository at this point in the history
  • Loading branch information
klauspost committed Sep 17, 2019
2 parents 08c0065 + a938213 commit 3d839ae
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 1 deletion.
77 changes: 77 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
builds:
-
id: "s2c"
binary: s2c
main: ./s2/cmd/s2c/main.go
env:
- CGO_ENABLED=0
goos:
- linux
- freebsd
- netbsd
- windows
goarch:
- 386
- amd64
- arm
- arm64
- ppc64
- ppc64le
- mips64
- mips64le
goarm:
- 7
-
id: "s2d"
binary: s2d
main: ./s2/cmd/s2d/main.go
env:
- CGO_ENABLED=0
goos:
- linux
- freebsd
- netbsd
- windows
goarch:
- 386
- amd64
- arm
- arm64
- ppc64
- ppc64le
- mips64
- mips64le
goarm:
- 7

archives:
-
id: s2-binaries
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
freebsd: FreeBSD
netbsd: NetBSD
format_overrides:
- goos: windows
format: zip
files:
- s2/LICENSE
- s2/README.md
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
12 changes: 11 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ script:
- go test -v -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 && s2d
- go build github.com/klauspost/compress/s2/cmd/s2c && go build github.com/klauspost/compress/s2/cmd/s2d && s2c s2c && s2d s2c.s2
- GOOS=linux GOARCH=386 go install ./...

matrix:
Expand All @@ -41,3 +41,13 @@ jobs:
go: 1.12.x
script:
- ./fuzzit.sh fuzzing

after_success:
# calls goreleaser
deploy:
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash
on:
tags: true
condition: $TRAVIS_OS_NAME = linux

0 comments on commit 3d839ae

Please sign in to comment.