Skip to content

Commit

Permalink
Add goreleaser to travis. (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinSullivan1 committed Feb 21, 2018
1 parent 7345d24 commit bf2d937
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ language: go
go:
- 1.8.5
- 1.9.2
addons:
apt:
packages:
# needed for the nfpm pipe:
- rpm
install:
- go get github.com/nats-io/go-nats
- go get github.com/nats-io/gnatsd
Expand All @@ -22,4 +27,12 @@ script:
- go test -v -race $EXCLUDE_VENDOR -p 1
after_success:
- if [[ "$TRAVIS_GO_VERSION" == 1.9.* ]]; then ./scripts/cov.sh TRAVIS; fi
- if [[ "$TRAVIS_GO_VERSION" == 1.9.* ]] && [ "$TRAVIS_TAG" != "" ]; then ./scripts/cross_compile.sh $TRAVIS_TAG; ghr --owner nats-io --token $GITHUB_TOKEN --draft --replace $TRAVIS_TAG pkg/; fi

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

0 comments on commit bf2d937

Please sign in to comment.