-
-
Save rollick/42b92c18c3a265b08792 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
SAUCE_TMP_DIR="$(mktemp -d)" | |
cd $SAUCE_TMP_DIR | |
SC_ZIP=Sauce-Connect-latest.zip | |
SC_READYFILE=sauce-connect-ready | |
SC_LOGFILE=$HOME/sauce-connect.log | |
echo "Downloading Sauce Connect" | |
wget https://saucelabs.com/downloads/$SC_ZIP | |
echo "Extracting Sauce Connect" | |
unzip $SC_ZIP | |
echo "Starting Sauce Connect" | |
java -jar Sauce-Connect.jar $SAUCE_USERNAME $SAUCE_ACCESS_KEY -i $TRAVIS_JOB_NUMBER -f $SC_READYFILE -l $SC_LOGFILE & | |
echo "Waiting for Sauce Connect readyfile" | |
while [ ! -f $SC_READYFILE ]; do | |
sleep .5 | |
done | |
unset SAUCE_CONNECT_PLATFORM SAUCE_TMP_DIR SC_DIR SC_TARBALL SC_READYFILE SC_LOGFILE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment