etherpad-lite/tests/frontend/travis/sauce_tunnel.sh

12 lines
436 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-10-28 18:51:05 +00:00
(java -jar /tmp/Sauce-Connect.jar $SAUCE_USER $SAUCE_KEY | grep -v $SAUCE_KEY)&
#save the sauce pid in a file and give it a bit of time to connect
echo $! > /tmp/sauce.pid
2012-10-28 18:51:05 +00:00
wait 30
kill $!