Last active
August 29, 2015 14:01
-
-
Save dmunn/bdc8a6570ef4c4bca721 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CONNECT_DIR="/tmp/sauce-connect-$RANDOM" | |
READY_FILE="connect-ready-$RANDOM" | |
# Get Connect and start it | |
mkdir -p $CONNECT_DIR | |
cd $CONNECT_DIR | |
wget http://saucelabs.com/downloads/Sauce-Connect-latest.zip | |
unzip Sauce-Connect-latest.zip | |
rm Sauce-Connect-latest.zip | |
java -jar Sauce-Connect.jar --readyfile $READY_FILE \ | |
--tunnel-identifier $TRAVIS_JOB_NUMBER \ | |
$SAUCE_USERNAME $SAUCE_ACCESS_KEY & | |
# Wait for Connect to be ready before exiting | |
while [ ! -f $READY_FILE ]; do | |
sleep .5 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment