-
Notifications
You must be signed in to change notification settings - Fork 5
/
circle.yml
29 lines (29 loc) · 930 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
machine:
node:
version: 7.7.1
test:
override:
- npm run lint
- npm test --coverage
- npm run jsdoc
- if git log -1 --pretty=%B | grep -qF "[skip tests]"; then true; else npm run integration; fi
post:
# Upload test coverage data
- npm run report-coverage
deployment:
production:
branch: master
commands:
# Publish NPM package (if newer)
- mv npmrc-env .npmrc
- if [ $(npm show five-bells-shared version) != $(npm ls --depth=-1 2>/dev/null | head -1 | cut -f 1 -d " " | cut -f 2 -d @) ] ; then npm publish ; fi
# Necessary git config to run website deployment on CircleCI
- git config --global user.email "info@circleci.com"
- git config --global user.name "CircleCI"
- git config --global push.default simple
# Publish docs to website
- node scripts/publish_web.js
general:
artifacts:
- "coverage/lcov-report"
- "docs-out"