2012-10-28 16:48:51 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#download and unzip the sauce connector
|
2012-10-29 23:45:22 +00:00
|
|
|
echo "hello world"
|
2012-10-29 23:43:27 +00:00
|
|
|
#curl http://saucelabs.com/downloads/Sauce-Connect-latest.zip > /tmp/sauce.zip
|
|
|
|
#unzip /tmp/sauce.zip -d /tmp
|
2012-10-28 16:48:51 +00:00
|
|
|
|
|
|
|
#start the sauce connector in background and make sure it doesn't output the secret key
|
2012-10-29 23:43:27 +00:00
|
|
|
#(java -jar /tmp/Sauce-Connect.jar $SAUCE_USER $SAUCE_KEY | grep -v $SAUCE_KEY)&
|
2012-10-28 16:48:51 +00:00
|
|
|
|
|
|
|
#save the sauce pid in a file and give it a bit of time to connect
|
2012-10-29 23:43:27 +00:00
|
|
|
#echo $! > /tmp/sauce.pid
|
|
|
|
#wait 30
|
|
|
|
#kill $!
|