aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-08-06 16:17:44 +0200
committerMichael Muré <batolettre@gmail.com>2018-08-06 16:17:44 +0200
commit593891b8e01fd89866b30854a60aece1dad5f6ab (patch)
tree2d1e2d257e40163906575a6d8b323640c62d4e66
parentd2f5e6b92738abf99ea5adfc09b038b35db6176e (diff)
downloadgit-bug-593891b8e01fd89866b30854a60aece1dad5f6ab.tar.gz
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
-rw-r--r--.travis.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 6772914e..57d86ac6 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