Fix poor mistakes with travis

This commit is contained in:
Tony Blyler 2016-06-17 10:04:47 -04:00
parent c485a4d507
commit d775b8f80d
No known key found for this signature in database
GPG key ID: 25C9D3A655D1A65C

View file

@ -14,9 +14,12 @@ before_install:
- go get github.com/mitchellh/gox
- go get github.com/tcnksm/ghr
install:
- "[ \"${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"
# There are no tests at the moment :(
script:
- "[ \"${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"
- "true"
after_success:
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && ghr --username tblyler --token "${GITHUB_TOKEN}" --replace --prerelease --debug "${TAG}" dist/ || false'