From cb13f6073b653ded191ec7d45aebe5b3842ebcab Mon Sep 17 00:00:00 2001 From: Tony Blyler Date: Mon, 16 May 2016 20:55:31 -0400 Subject: [PATCH] Update travis build config --- .travis.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f1f0890..81a39d2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,4 +2,12 @@ language: go go: - 1.6 - - tip + +before_install: + - go get github.com/mitchellh/gox + - gox -build-toolchain + - go get github.com/tcnksm/ghr + +after_success: + - gox -ldflags "-X 'main.buildVersion=$(if [ -n $TRAVIS_TAG ]; then echo -n $TRAVIS_COMMIT; else echo -n $TRAVIS_TAG; fi)' -X 'main.buildDate=$(date -u +%Y/%m/%d %H:%M:%S)'" + - ghr -u tblyler -r $TRAVIS_REPO_SLUG --token $GITHUB_TOKEN --replace dist/