Only build all files if it's a tagged commit (for releases deployment)
This commit is contained in:
parent
2b6f08f8cb
commit
921b77df84
|
@ -23,6 +23,8 @@ install:
|
||||||
- rsync -r ./vendor/ $GOPATH/src
|
- rsync -r ./vendor/ $GOPATH/src
|
||||||
script:
|
script:
|
||||||
- ./.scripts/test_all.sh
|
- ./.scripts/test_all.sh
|
||||||
|
before_deploy:
|
||||||
|
- if [[ "$TRAVIS_TAG" != "" ]]; then ./.scripts/build_all.sh; fi
|
||||||
deploy:
|
deploy:
|
||||||
- provider: releases
|
- provider: releases
|
||||||
api_key:
|
api_key:
|
||||||
|
@ -34,7 +36,6 @@ deploy:
|
||||||
tags: true
|
tags: true
|
||||||
go: 1.7
|
go: 1.7
|
||||||
repo: tus/tusd
|
repo: tus/tusd
|
||||||
#condition: $(./.scripts/build_all.sh)
|
|
||||||
- provider: script
|
- provider: script
|
||||||
script: .scripts/deploy_current.sh
|
script: .scripts/deploy_current.sh
|
||||||
on:
|
on:
|
||||||
|
|
Loading…
Reference in New Issue