From d775b8f80db1d24942e67779370995b9bcdc83c1 Mon Sep 17 00:00:00 2001 From: Tony Blyler Date: Fri, 17 Jun 2016 10:04:47 -0400 Subject: [PATCH] Fix poor mistakes with travis --- .travis.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 77fc32f..d33ca04 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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'