Browse Source

fix(ci): quote shell comparison to avoid errors when unset

Avoids log of "/home/travis/.travis/functions: line 109: test: ==: unary
operator expected" in travisci build output
reviewable/pr5983/r1
Anthony Bilinski 6 years ago
parent
commit
475128d171
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
  1. 12
      .travis.yml

12
.travis.yml

@ -271,12 +271,12 @@ deploy: @@ -271,12 +271,12 @@ deploy:
after_success:
- >
test $TRAVIS_PULL_REQUEST == "false"
&& test $TRAVIS_BRANCH == "master"
&& test $JOB == "build-docs"
test "$TRAVIS_PULL_REQUEST" == "false"
&& test "$TRAVIS_BRANCH" == "master"
&& test "$JOB" == "build-docs"
&& bash ./.travis/deploy-docs.sh
- >
test $TRAVIS_PULL_REQUEST == "false"
&& test $TRAVIS_BRANCH == "master"
&& test $JOB == "build-gitstats"
test "$TRAVIS_PULL_REQUEST" == "false"
&& test "$TRAVIS_BRANCH" == "master"
&& test "$JOB" == "build-gitstats"
&& bash ./.travis/deploy-gitstats.sh

Loading…
Cancel
Save