Build system: Use conditional build stages for deploying
Thanks @BanzaiMan for this tip
This commit is contained in:
parent
cde8c8697b
commit
c7862de924
@ -24,10 +24,9 @@ jobs:
|
|||||||
|
|
||||||
# Deployment stage
|
# Deployment stage
|
||||||
- stage: deploy
|
- stage: deploy
|
||||||
|
if: (type == "push") AND ((tag IS present) OR (branch IN env(DEPLOY_PHPDOC_BRANCHES)))
|
||||||
sudo: required
|
sudo: required
|
||||||
install:
|
install:
|
||||||
- '[ "$TRAVIS_PULL_REQUEST" == "false" ] || travis_terminate 0'
|
|
||||||
- '[ -n "$TRAVIS_TAG" ] || [[ ",$DEPLOY_PHPDOC_BRANCHES," == *,"$TRAVIS_BRANCH",* ]] || travis_terminate 0'
|
|
||||||
- install.sh --deploy
|
- install.sh --deploy
|
||||||
script:
|
script:
|
||||||
- deploy.sh
|
- deploy.sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user