Update support for pull requests in Travis

This commit is contained in:
Tony Blyler 2016-05-16 23:06:02 -04:00
parent 61f7a52ef1
commit 02f6bae479
No known key found for this signature in database
GPG key ID: 25C9D3A655D1A65C

View file

@ -11,5 +11,5 @@ before_install:
- go get github.com/tcnksm/ghr
after_success:
- gox -ldflags "-X 'main.buildVersion=$BUILD_VERSION ($TRAVIS_COMMIT)' -X 'main.buildDate=$DATE'" -output "dist/hoarder_{{.OS}}_{{.Arch}}" ./cmd/hoarder
- ghr --username tblyler --token $GITHUB_TOKEN --replace --prerelease --debug $BUILD_VERSION dist/
- "[ \"${TRAVIS_PULL_REQUEST}\" = \"false\" ] && gox -ldflags \"-X 'main.buildVersion=${BUILD_VERSION} (${TRAVIS_COMMIT})' -X 'main.buildDate=${DATE}'\" -output \"dist/hoarder_{{.OS}}_{{.Arch}}\" ./cmd/hoarder || false"
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && ghr --username tblyler --token "${GITHUB_TOKEN}" --replace --prerelease --debug "${BUILD_VERSION}" dist/ || false'