Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 494c8aa

Browse files
committed
chore(ci): update sauce connect from 3 to 4.3 for the 1.2.x branch
1 parent cd9459e commit 494c8aa

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/sauce/sauce_connect_setup.sh

+5-4
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ set -e
1212
# before_script:
1313
# - curl https://gist.github.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash
1414

15-
CONNECT_URL="http://saucelabs.com/downloads/Sauce-Connect-latest.zip"
15+
CONNECT_URL="https://d2nkw87yt5k0to.cloudfront.net/downloads/sc-4.3-linux.tar.gz"
1616
CONNECT_DIR="/tmp/sauce-connect-$RANDOM"
17-
CONNECT_DOWNLOAD="Sauce_Connect.zip"
17+
CONNECT_DOWNLOAD="sc-4.3-linux.tar.gz"
1818

1919
CONNECT_LOG="$LOGS_DIR/sauce-connect"
2020
CONNECT_STDOUT="$LOGS_DIR/sauce-connect.stdout"
@@ -24,7 +24,8 @@ CONNECT_STDERR="$LOGS_DIR/sauce-connect.stderr"
2424
mkdir -p $CONNECT_DIR
2525
cd $CONNECT_DIR
2626
curl $CONNECT_URL -o $CONNECT_DOWNLOAD 2> /dev/null 1> /dev/null
27-
unzip $CONNECT_DOWNLOAD > /dev/null
27+
mkdir sauce-connect
28+
tar --extract --file=$CONNECT_DOWNLOAD --strip-components=1 --directory=sauce-connect > /dev/null
2829
rm $CONNECT_DOWNLOAD
2930

3031
SAUCE_ACCESS_KEY=`echo $SAUCE_ACCESS_KEY | rev`
@@ -45,5 +46,5 @@ echo "Starting Sauce Connect in the background, logging into:"
4546
echo " $CONNECT_LOG"
4647
echo " $CONNECT_STDOUT"
4748
echo " $CONNECT_STDERR"
48-
java -jar Sauce-Connect.jar $ARGS $SAUCE_USERNAME $SAUCE_ACCESS_KEY \
49+
sauce-connect/bin/sc -u $SAUCE_USERNAME -k $SAUCE_ACCESS_KEY $ARGS -v \
4950
--logfile $CONNECT_LOG 2> $CONNECT_STDERR 1> $CONNECT_STDOUT &

0 commit comments

Comments
 (0)