From 42fc02bd480494dab5e8bfa25cd9bc15cf05fc6c Mon Sep 17 00:00:00 2001 From: JAremko Date: Wed, 4 Dec 2019 18:45:44 +0200 Subject: [PATCH] [CI] Cramp deploy conditions into a single line --- .travis.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5a54fbfe7..5cb9ff714 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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}')