Skip to content

Commit

Permalink
fix(Travis): Make travis run saucelabs tests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
c0bra committed Oct 8, 2014
1 parent d269909 commit 3bc3f27
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/sauce/sauce_connect_block.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/sauce/sauce_connect_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion travis_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3bc3f27

Please sign in to comment.