diff --git a/lib/sauce/sauce_connect_block.sh b/lib/sauce/sauce_connect_block.sh index aeb8b48488..94f83f45ec 100644 --- a/lib/sauce/sauce_connect_block.sh +++ b/lib/sauce/sauce_connect_block.sh @@ -1,6 +1,6 @@ #!/bin/bash -if [ ! $TRAVIS_PULL_REQUEST ] +if [ ! $TRAVIS_PULL_REQUEST == "true" ] then # Wait for Connect to be ready before exiting while [ ! -f $SAUCE_CONNECT_READY_FILE ]; do diff --git a/lib/sauce/sauce_connect_setup.sh b/lib/sauce/sauce_connect_setup.sh index 6d191531f7..5cc9ee60e2 100644 --- a/lib/sauce/sauce_connect_setup.sh +++ b/lib/sauce/sauce_connect_setup.sh @@ -13,7 +13,7 @@ set -e # - curl https://gist.github.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash # Skip this if we're un a pull request, we won't be able to connect -if [ $TRAVIS_PULL_REQUEST ] +if [ $TRAVIS_PULL_REQUEST == "true" ] then exit 0 fi diff --git a/travis_build.sh b/travis_build.sh index fd5c1c980f..7af073558e 100644 --- a/travis_build.sh +++ b/travis_build.sh @@ -20,7 +20,7 @@ grunt # If this is a pull request then we won't have access to secure variables and can't do integration tests with SauceLabs. # In this case just do normal local tests -if [ $TRAVIS_PULL_REQUEST ] +if [ $TRAVIS_PULL_REQUEST == "true" ] then grunt test else