Only build all files if it's a tagged commit (for releases deployment)

This commit is contained in:
Marius 2016-11-11 21:24:45 +01:00
parent 2b6f08f8cb
commit 921b77df84
1 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,8 @@ install:
- rsync -r ./vendor/ $GOPATH/src
script:
- ./.scripts/test_all.sh
before_deploy:
- if [[ "$TRAVIS_TAG" != "" ]]; then ./.scripts/build_all.sh; fi
deploy:
- provider: releases
api_key:
@ -34,7 +36,6 @@ deploy:
tags: true
go: 1.7
repo: tus/tusd
#condition: $(./.scripts/build_all.sh)
- provider: script
script: .scripts/deploy_current.sh
on: