-
Notifications
You must be signed in to change notification settings - Fork 57
/
circle.yml
31 lines (31 loc) · 945 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
version: 2
jobs:
build:
working_directory: ~/cordova-plugin-stripe/
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:
- ~/cordova-plugin-stripe/node_modules/
- run:
name: jshint
command: npm run jshint
- add_ssh_keys
- run:
name: Update docs
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
npm run docs
git config --global user.name "ZM Bot"
git config --global user.email "[email protected]"
git commit -am "docs(): update readme" -m "[ci skip]" || true
git push origin master || true
fi