Skip to content

Commit 99a72a0

Browse files
committed
chore(circle): add sauce-connect
1 parent 900f760 commit 99a72a0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Diff for: circle.yml

+12
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ dependencies:
1717
# builds. If you need to, you can add custom paths to cache:
1818
cache_directories:
1919
- "test/fixtures/node_modules"
20+
post:
21+
- wget https://saucelabs.com/downloads/sc-latest-linux.tar.gz
22+
- tar -xzf sc-latest-linux.tar.gz
2023

2124
## Custom notifications
2225
#notify:
@@ -25,3 +28,12 @@ notify:
2528
# A list of hook hashes, containing the url field
2629
# gitter hook
2730
- url: https://webhooks.gitter.im/e/ac3980c61cb722b9e789
31+
32+
test:
33+
pre:
34+
- cd sc-*-linux && ./bin/sc --user $SAUCE_USERNAME --api-key $SAUCE_ACCESS_KEY --readyfile ~/sauce_is_ready:
35+
background: true
36+
# Wait for tunnel to be ready
37+
- while [ ! -e ~/sauce_is_ready ]; do sleep 1; done
38+
post:
39+
- killall --wait sc # wait for Sauce Connect to close the tunnel

0 commit comments

Comments
 (0)