From c485a4d5070df9bf27e0f836174fe1bf53210588 Mon Sep 17 00:00:00 2001 From: Tony Blyler Date: Fri, 17 Jun 2016 09:26:24 -0400 Subject: [PATCH] Fix travis notfications --- .travis.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index eccfce9..77fc32f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,10 +14,14 @@ before_install: - go get github.com/mitchellh/gox - go get github.com/tcnksm/ghr +# There are no tests at the moment :( script: - # There are no tests at the moment :( - - go version + - "[ \"${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" after_success: - - "[ \"${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 "${TAG}" dist/ || false' + +notifications: + email: + on_success: change + on_failure: change