-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
49 lines (39 loc) · 1.42 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
machine:
node:
version: 6.11.4
dependencies:
cache_directories:
- ~/.cache/yarn # Add yarn cache to CircleCI cache (shared between builds)
pre:
# Update Chrome to v55 (CircleCI has v53 now).
# Why? Seems like Custom Elements are not available in v53 and we need them
# for Clarity UI (and the @webcomponents/custom-elements polyfil breaks Angular tests)
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
- sudo sh -c 'echo "deb 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
# Install yarn
- curl -o- -L https://yarnpkg.com/install.sh | bash
override:
- rm -rf node_modules # Remove this restored by CircleCI. Utilise yarn cache instead.
- yarn install
post:
# Launch app, so it's ready for e2e tests running later on
- yarn run start:
background: true
test:
override:
- yarn run lint
- yarn run test:ci
- yarn run build # test the dev build as well, to make sure it works
- yarn run e2e
post:
- yarn run build:prod
deployment:
production: # Deploy `master` to https://dev-ng2-github-d52c4.firebaseio.com/
branch: master
commands:
- yarn run deploy
development: # Deploy `prod` to https://ng2-github.firebaseapp.com/
branch: prod
commands:
- yarn run deploy:prod