forked from knockout/tko
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
42 lines (34 loc) · 1.12 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
machine:
node:
version: 9
environment:
CI_AUTOMATE_PROJECT: $CIRCLE_SHA1
CI_AUTOMATE_BUILD: Build No. $CIRCLE_BUILD_NUM for $CIRCLE_SHA1
PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
# Irritatingly the best option seems to be to hard-code the Sauce Labs
# Connect proxy version.
SC_VERSION: 4.4.11
dependencies:
override:
- wget https://saucelabs.com/downloads/sc-${SC_VERSION}-linux.tar.gz
- tar zxf sc-*-linux.tar.gz
- sc-${SC_VERSION}-linux/bin/sc --user $SAUCE_USERNAME --api-key $SAUCE_ACCESS_KEY --readyfile ~/sauce_is_ready:
background: true
# While we wait for Sauce Connect, set up the node modules.
- yarn config set workspaces-experimental true
- yarn
- lerna bootstrap
# Wait for Sauec Connect tunnel to be ready
- while [ ! -e ~/sauce_is_ready ]; do sleep 1; done
test:
override:
# Test in Electron
- yarn test
# Test in all other browsers
- yarn test --sauce --noStartConnect
post:
- killall --wait sc # wait for Sauce Connect to close the tunnel
general:
branches:
ignore:
- gh-pages