Skip to content

Commit

Permalink
uses different goreleaser scripts for rc and stable
Browse files Browse the repository at this point in the history
  • Loading branch information
andrestc committed Jul 26, 2017
1 parent 8e4efdc commit 3a2166d
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 18 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -10,6 +10,7 @@ go:
env:
global:
- GO_FOR_RELEASE=1.8
- GORELEASER_CONFIG=goreleaser-rc.yml
matrix:
- GOARCH=amd64
- GOARCH=386
Expand All @@ -30,5 +31,5 @@ notifications:
secure: dDuxAhF7DgwmCvb3V7nu01+RUhvxhOCiBfGVC6596nx93ThjbTgPcMdkAdO7Xk4zFQcH3AiF3+ionMTSk+4oxRIBI0i4p71AkQoFUARWCfmLYWlztZ3Wii4/3bT36bzn5NPqGbNXhx2sWRzOO2W01jQLyFFdZlVKVTBqwBqHqG4=
after_success:
- bash <(curl -s https://codecov.io/bash)
- '[[ "$TRAVIS_TAG" =~ ^[0-9\.]+$ ]] && cat goreleaser-brew.yml >> goreleaser.yml || true'
- '[[ "$TRAVIS_TAG" =~ ^[0-9\.]+$ ]] && export GORELEASER_CONFIG=goreleaser-stable.yml || true'
- test -n "$TRAVIS_TAG" && curl -sL https://raw.githubusercontent.com/tsuru/push-to-packagecloud/master/push.sh | PACKAGE_NAME=tsuru bash
17 changes: 0 additions & 17 deletions goreleaser-brew.yml

This file was deleted.

File renamed without changes.
38 changes: 38 additions & 0 deletions goreleaser-stable.yml
@@ -0,0 +1,38 @@
# goreleaser.yml
# Build customization
build:
main: ./tsuru/main.go
binary: tsuru
goos:
- windows
- darwin
- linux
goarch:
- amd64

# Archive customization
archive:
name_template: "{{.Binary}}_{{.Version}}_{{.Os}}_{{.Arch}}"
format: tar.gz
replacements:
darwin: macOS
files:
- misc/bash-completion
- misc/zsh-completion

# Mac OS Homebrew
brew:
# Reporitory to push the tap to.
github:
owner: tsuru
name: homebrew-tsuru

# Folder inside the repository to put the formula.
# Default is the root folder.
folder: Formula

# Custom install
install: |
bin.install "tsuru"
bash_completion.install "misc/bash-completion" => "tsuru"
zsh_completion.install "misc/zsh-completion" => "tsuru"

0 comments on commit 3a2166d

Please sign in to comment.