-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathcircle.yml
52 lines (46 loc) · 1.56 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
43
44
45
46
47
48
49
50
51
52
## Customize the test machine
machine:
node:
version: 5.11.1
post:
- npm install -g gulp-cli
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
- sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
- sudo apt-get update
- sudo apt-get install google-chrome-stable
## Customize checkout
checkout:
post:
- git submodule sync
- git submodule update --init # use submodules
## Customize dependencies
dependencies:
# we automatically cache and restore many dependencies between
# builds. If you need to, you can add custom paths to cache:
cache_directories:
- "test/fixtures/node_modules"
post:
- wget https://saucelabs.com/downloads/sc-latest-linux.tar.gz
- tar -xzf sc-latest-linux.tar.gz
## Custom notifications
#notify:
notify:
webhooks:
# A list of hook hashes, containing the url field
# gitter hook
- url: https://webhooks.gitter.im/e/ac3980c61cb722b9e789
## Deployments
deployment:
docker:
# update the upstream dockerfile after a push
branch: [master, docker-integration]
commands:
- generator-angular-fullstack/angular-fullstack-dockerfile/create_branch.sh
test:
pre:
- cd sc-*-linux && ./bin/sc --user $SAUCE_USERNAME --api-key $SAUCE_ACCESS_KEY --readyfile ~/sauce_is_ready:
background: true
# Wait for tunnel to be ready
- while [ ! -e ~/sauce_is_ready ]; do sleep 1; done
post:
- killall --wait sc # wait for Sauce Connect to close the tunnel