[CI] Cramp deploy conditions into a single line

This commit is contained in:
JAremko 2019-12-04 18:45:44 +02:00 committed by Eugene Yaremenko
parent 70cfe750d5
commit 42fc02bd48
1 changed files with 2 additions and 8 deletions

View File

@ -26,10 +26,7 @@ deploy:
branch: develop
# Deploy only if we are in the official repo and
# the local revision matches origin's head
condition: |
$TRAVIS_REPO_SLUG = $SPACEMACS_REPO_SLUG AND \
$(git remote update) AND \
$(git rev-parse '@') = $(git rev-parse '@{u}')
condition: $TRAVIS_REPO_SLUG = $SPACEMACS_REPO_SLUG && $(git remote update) && $(git rev-parse '@') = $(git rev-parse '@{u}')
- provider: script
skip_cleanup: true
script: ".travisci/pub_html.sh"
@ -37,7 +34,4 @@ deploy:
all_branches: true
# Deploy only if we are in the official repo and
# the local revision matches origin's head
condition: |
$TRAVIS_REPO_SLUG = $SPACEMACS_REPO_SLUG AND \
$(git remote update) AND \
$(git rev-parse '@') = $(git rev-parse '@{u}')
condition: $TRAVIS_REPO_SLUG = $SPACEMACS_REPO_SLUG && $(git remote update) && $(git rev-parse '@') = $(git rev-parse '@{u}')