Skip to content

Commit

Permalink
add goreleaser support
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermebr committed Jul 18, 2017
1 parent 6953edf commit e9987d9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
language: go
sudo: false
go:
- 1.6.3
- 1.7.1
- tip
- 1.8.x
- master
env:
global:
- GO_FOR_RELEASE=1.8
matrix:
- GOARCH=amd64
- GOARCH=386
matrix:
allow_failures:
- go: master
script:
- go test -x ./...
after_success:
- if [ -n "$TRAVIS_TAG" ]; then curl -sL https://raw.githubusercontent.com/tsuru/push-to-packagecloud/master/push.sh | PACKAGE_NAME=deploy-agent bash; fi
17 changes: 17 additions & 0 deletions goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# goreleaser.yml
# Build customization
build:
main: ./main.go
binary: tsuru_unit_agent
goos:
- linux
goarch:
- amd64

# Archive customization
archive:
name_template: "{{.Binary}}_{{.Version}}_{{.Os}}_{{.Arch}}"
format: tar.gz
replacements:
amd64: amd64
linux: linux

0 comments on commit e9987d9

Please sign in to comment.