-
Notifications
You must be signed in to change notification settings - Fork 70
/
circle.yml
33 lines (33 loc) · 898 Bytes
/
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
version: 2
jobs:
build:
working_directory: ~/ngx-facebook/
docker:
- image: node:7
steps:
- checkout
- restore_cache:
key: node_modules_{{ .Branch }}_{{ checksum "package.json" }}
- run:
name: Install node modules
command: npm i
- save_cache:
key: node_modules_{{ .Branch }}_{{ checksum "package.json" }}
paths:
- ~/ngx-facebook/node_modules/
- run:
name: Lint
command: npm run lint
- run:
name: Build module
command: npm run build
- run:
name: Test
command: npm test
- add_ssh_keys
- deploy:
name: Update docs
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
bash ./scripts/docs/update_docs.sh
fi