Skip to content

Commit ecd7f72

Browse files
Portugal, MarceloPortugal, Marcelo
authored andcommitted
chore(Sauce_Connect): Updating scripts that connect to sauce labs.
1 parent 404e649 commit ecd7f72

File tree

4 files changed

+21
-20
lines changed

4 files changed

+21
-20
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,5 @@ after_failure:
6262
- ./travis_print_logs.sh
6363

6464
after_script:
65+
- killall -9 sc
6566
- ./travis_print_logs.sh

lib/grunt/utils.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -126,18 +126,18 @@ var util = module.exports = {
126126
platform: 'Windows 8.1',
127127
version: '11'
128128
},
129-
'SL_Android_4': {
130-
base: 'SauceLabs',
131-
browserName: 'android',
132-
platform: 'Linux',
133-
version: '4.0'
134-
},
135-
'SL_Android_4.3': {
136-
base: 'SauceLabs',
137-
browserName: 'android',
138-
platform: 'Linux',
139-
version: '4.3'
140-
},
129+
// 'SL_Android_4': {
130+
// base: 'SauceLabs',
131+
// browserName: 'android',
132+
// platform: 'Linux',
133+
// version: '4.0'
134+
// },
135+
// 'SL_Android_4.3': {
136+
// base: 'SauceLabs',
137+
// browserName: 'android',
138+
// platform: 'Linux',
139+
// version: '4.3'
140+
// },
141141
'SL_Linux_Opera': {
142142
base: 'SauceLabs',
143143
browserName: 'opera',

lib/sauce/sauce_connect_block.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ then
66
while [ ! -f $SAUCE_CONNECT_READY_FILE ]; do
77
sleep .5
88
done
9-
fi
9+
fi

lib/sauce/sauce_connect_setup.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ set -e
1212
# before_script:
1313
# - curl https://gist.github.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash
1414

15-
# Skip this if we're un a pull request, we won't be able to connect
15+
# Skip this if we're on a pull request, we won't be able to connect
1616
if [ $TRAVIS_PULL_REQUEST != "false" ]
1717
then
1818
exit 0
1919
fi
2020

21-
CONNECT_URL="http://saucelabs.com/downloads/Sauce-Connect-latest.zip"
21+
CONNECT_URL="https://saucelabs.com/downloads/sc-4.4.5-linux.tar.gz"
2222
CONNECT_DIR="/tmp/sauce-connect-$RANDOM"
23-
CONNECT_DOWNLOAD="Sauce_Connect.zip"
23+
CONNECT_DOWNLOAD="sc-4.4.5-linux.tar.gz"
2424

2525
if [ -z "$LOGS_DIR" ]
2626
then
@@ -35,8 +35,8 @@ CONNECT_STDERR="$LOGS_DIR/sauce-connect.stderr"
3535
# Get Connect and start it
3636
mkdir -p $CONNECT_DIR
3737
cd $CONNECT_DIR
38-
curl $CONNECT_URL -o $CONNECT_DOWNLOAD 2> /dev/null 1> /dev/null
39-
unzip $CONNECT_DOWNLOAD > /dev/null
38+
wget $CONNECT_URL 1> /dev/null
39+
tar -xvzf $CONNECT_DOWNLOAD --strip 1
4040
rm $CONNECT_DOWNLOAD
4141

4242
# Don't think we need this with a secure env var
@@ -58,5 +58,5 @@ echo "Starting Sauce Connect in the background, logging into:"
5858
echo " $CONNECT_LOG"
5959
echo " $CONNECT_STDOUT"
6060
echo " $CONNECT_STDERR"
61-
java -jar Sauce-Connect.jar $ARGS $SAUCE_USERNAME $SAUCE_ACCESS_KEY \
62-
--logfile $CONNECT_LOG 2> $CONNECT_STDERR 1> $CONNECT_STDOUT &
61+
./bin/sc -u $SAUCE_USERNAME -k $SAUCE_ACCESS_KEY $ARGS \
62+
--logfile $CONNECT_LOG &

0 commit comments

Comments
 (0)