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