Permalink
Browse files

Download and start Sauce Connect manually

Disable Travis' own Sauce Labs integration
1 parent eb4aec2 commit b3885b4eceb4a818e7f8d2d290f89f4d8eaeb0d3 @mislav mislav committed Oct 11, 2015
Showing with 24 additions and 2 deletions.
  1. +2 −0 .gitignore
  2. +0 −2 .travis.yml
  3. +12 −0 Makefile
  4. +10 −0 script/saucelabs
View
@@ -1,3 +1,5 @@
.env
bower_components/
node_modules/
+sauce_connect/
+sauce_connect.log
View
@@ -12,8 +12,6 @@ env:
- SAUCE_PLATFORM="Windows 7" SAUCE_BROWSER="internet explorer" SAUCE_VERSION="11"
- SAUCE_PLATFORM="Windows 7" SAUCE_BROWSER="internet explorer" SAUCE_VERSION="10"
- SAUCE_PLATFORM="Windows 7" SAUCE_BROWSER="internet explorer" SAUCE_VERSION="9"
-addons:
- sauce_connect: true
deploy:
provider: npm
email: matt@mattandre.ws
View
@@ -15,4 +15,16 @@ node_modules/:
clean:
rm -rf ./bower_components ./node_modules
+ifeq ($(shell uname -s),Darwin)
+sauce_connect/bin/sc:
+ wget https://saucelabs.com/downloads/sc-4.3.11-osx.zip
+ unzip sc-4.3.11-osx.zip
+ mv sc-4.3.11-osx sauce_connect
+ rm sc-4.3.11-osx.zip
+else
+sauce_connect/bin/sc:
+ mkdir -p sauce_connect
+ curl -fsSL http://saucelabs.com/downloads/sc-4.3.11-linux.tar.gz | tar xz -C sauce_connect --strip-components 1
+endif
+
.PHONY: build clean lint test saucelabs travis
View
@@ -9,6 +9,16 @@ node ./script/server $port &>/dev/null &
server_pid=$!
trap "kill $server_pid" INT EXIT
+make sauce_connect/bin/sc
+sauce_ready="${TMPDIR:-/tmp}/sauce-ready.$$"
+sauce_connect/bin/sc -u "$SAUCE_USERNAME" -k "$SAUCE_ACCESS_KEY" \
+ -i "$TRAVIS_JOB_NUMBER" -l sauce_connect.log -f "$sauce_ready" &>/dev/null &
+sauce_pid=$!
+trap "kill $sauce_pid" INT EXIT
+
+while [ ! -f "$sauce_ready" ]; do sleep .01; done
+rm -f "$sauce_ready"
+
job=$(./script/saucelabs-start "http://localhost:$port/test/test.html")
while true

0 comments on commit b3885b4

Please sign in to comment.