pad.pub0.org/tests/frontend/travis/sauce_tunnel.sh

16 lines
478 B
Bash
Raw Normal View History

#!/bin/bash
# download and unzip the sauce connector
curl http://saucelabs.com/downloads/Sauce-Connect-latest.zip > /tmp/sauce.zip
unzip /tmp/sauce.zip -d /tmp
# start the sauce connector in background and make sure it doesn't output the secret key
2012-11-01 23:46:04 +00:00
(java -jar /tmp/Sauce-Connect.jar $SAUCE_USER $SAUCE_KEY -f /tmp/tunnel > /dev/null )&
# save the sauce pid in a file
echo $! > /tmp/sauce.pid
# wait for the tunnel to build up
while [ ! -e "/tmp/tunnel" ]
do
sleep 1
2012-11-01 21:46:50 +00:00
done