From 475128d171984de5f9ff34f98020a119dce65b42 Mon Sep 17 00:00:00 2001 From: Anthony Bilinski Date: Fri, 21 Feb 2020 22:57:58 -0800 Subject: [PATCH] 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 --- .travis.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8e30033ee..fc91525b0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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