From 593891b8e01fd89866b30854a60aece1dad5f6ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Mur=C3=A9?= Date: Mon, 6 Aug 2018 16:17:44 +0200 Subject: [PATCH] travis: run the cross compile only when deploying note: travis is dumb here and we have to rewrite the same condition twice. simply deploy/script would run all the time --- .travis.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6772914ee21e97e71cd5f21cdb67072c6fd00388..57d86ac67fee954867f6136f629bab55d727191f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,10 @@ script: - make test after_success: - - gox -tags=deploy_build -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}" + - if [ ! -z "$TRAVIS_TAG" ]; then + gox -tags=deploy_build -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}" + fi + deploy: provider: releases