-
Notifications
You must be signed in to change notification settings - Fork 21
/
circle.yml
34 lines (34 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
30
31
32
33
34
machine:
node:
version: 6.9.1
python:
version: 2.7.6
dependencies:
pre:
- pip install xml2rfc
test:
override:
# Run lint
- npm run lint
# Run tests (with coverage)
- npm test
post:
# Upload code coverage data
- nyc report --reporter=text-lcov > coverage.lcov && codecov
# Generate HTML coverage report
- nyc report --reporter=html
deployment:
production:
branch: master
commands:
# Publish spec
- git config --global user.email "info@circleci.com"
- git config --global user.name "CircleCI"
- git config --global push.default simple
- node scripts/publish_web.js
# Push NPM package if not yet published
- mv npmrc-env .npmrc
- if [ $(npm show five-bells-condition version) != $(npm ls --depth=-1 2>/dev/null | head -1 | cut -f 1 -d " " | cut -f 2 -d @) ] ; then npm publish ; fi
general:
artifacts:
- "coverage"