db003a1460
Could not dowload "Sauce-Connect-latest.zip" anymore, need to change to new version of SauceConnect.
14 lines
516 B
Bash
Executable file
14 lines
516 B
Bash
Executable file
#!/bin/bash
|
|
# download and unzip the sauce connector
|
|
curl https://saucelabs.com/downloads/sc-latest-linux.tar.gz > /tmp/sauce.tar.gz
|
|
tar zxf /tmp/sauce.tar.gz --directory /tmp
|
|
mv sc-*-linux sauce_connect
|
|
|
|
# start the sauce connector in background and make sure it doesn't output the secret key
|
|
(/tmp/sauce_connect/bin/sc --user $SAUCE_USERNAME --key $SAUCE_ACCESS_KEY --pidfile /tmp/sauce.pid --readyfile /tmp/tunnel > /dev/null )&
|
|
|
|
# wait for the tunnel to build up
|
|
while [ ! -e "/tmp/tunnel" ]
|
|
do
|
|
sleep 1
|
|
done
|