From 3bc3f272986c2cae55f26bc6ef8dd8f5fa6ef401 Mon Sep 17 00:00:00 2001 From: c0bra Date: Wed, 8 Oct 2014 10:14:47 -0500 Subject: [PATCH] fix(Travis): Make travis run saucelabs tests After 2bdd734b5e28 it looks like the serialsauce task isn't getting run on travis, so we haven't been doing any cross-browser testing for a month... Hopefully this change will do the right if-checks in bash and let the trask run. --- lib/sauce/sauce_connect_block.sh | 2 +- lib/sauce/sauce_connect_setup.sh | 2 +- travis_build.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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