mirror of
https://github.com/appium/appium.git
synced 2026-05-03 08:51:18 -05:00
Merge pull request #3199 from sebv/sauce-connect
ci: configured sauce connect
This commit is contained in:
@@ -40,7 +40,11 @@ before_script:
|
||||
- 'echo Node.js version: `node -v`'
|
||||
- npm install -g jshint grunt-cli mocha
|
||||
- npm install
|
||||
- "./ci/installers/install-sauce-connect.sh"
|
||||
- "./ci/before_script_extra.sh"
|
||||
- "ulimit -n 8000"
|
||||
# disabling sauce-connect until travis ichef issue is sorted
|
||||
# - "./ci/start-sauce-connect.sh"
|
||||
script:
|
||||
- "./ci/script.sh"
|
||||
- bash -c 'while true; do ping ondemand.saucelabs.com &> /dev/null; sleep 10; done' &
|
||||
|
||||
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
mkdir -p $HOME/tools/sc
|
||||
cd $HOME/tools/sc
|
||||
wget -P /tmp https://saucelabs.com/downloads/sc-4.3-osx.zip
|
||||
unzip /tmp/sc-4.3-osx.zip -d $HOME/tools/sc
|
||||
echo 'export PATH=$HOME/tools/sc/sc-4.3-osx/bin:$PATH' > $HOME/tools/sc/env
|
||||
Executable
+25
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
SC_DIR="/tmp/sc"
|
||||
READY_FILE="sc-ready-$RANDOM"
|
||||
|
||||
mkdir -p $SC_DIR && cd $SC_DIR
|
||||
touch $SC_DIR/sauce_connect.log
|
||||
|
||||
source $HOME/tools/sc/env
|
||||
|
||||
sc \
|
||||
-u $SAUCE_USERNAME \
|
||||
-k $SAUCE_ACCESS_KEY \
|
||||
--readyfile $READY_FILE\
|
||||
--tunnel-identifier $TRAVIS_JOB_NUMBER \
|
||||
-l $SC_DIR/sauce_connect.log \
|
||||
&> /dev/null &
|
||||
|
||||
echo 'waiting for sauce connect to start'
|
||||
tail -f $SC_DIR/sauce_connect.log &
|
||||
|
||||
# Wait for Connect to be ready before exiting
|
||||
while [ ! -f $READY_FILE ]; do
|
||||
sleep .5
|
||||
done
|
||||
Reference in New Issue
Block a user