Skip to content

Commit 3bc3f27

Browse files
committed
fix(Travis): Make travis run saucelabs tests
After 2bdd734 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.
1 parent d269909 commit 3bc3f27

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/sauce/sauce_connect_block.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
if [ ! $TRAVIS_PULL_REQUEST ]
3+
if [ ! $TRAVIS_PULL_REQUEST == "true" ]
44
then
55
# Wait for Connect to be ready before exiting
66
while [ ! -f $SAUCE_CONNECT_READY_FILE ]; do

lib/sauce/sauce_connect_setup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ set -e
1313
# - curl https://gist.github.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash
1414

1515
# Skip this if we're un a pull request, we won't be able to connect
16-
if [ $TRAVIS_PULL_REQUEST ]
16+
if [ $TRAVIS_PULL_REQUEST == "true" ]
1717
then
1818
exit 0
1919
fi

travis_build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ grunt
2020

2121
# If this is a pull request then we won't have access to secure variables and can't do integration tests with SauceLabs.
2222
# In this case just do normal local tests
23-
if [ $TRAVIS_PULL_REQUEST ]
23+
if [ $TRAVIS_PULL_REQUEST == "true" ]
2424
then
2525
grunt test
2626
else

0 commit comments

Comments
 (0)