Skip to content

Commit

Permalink
feat(ci)
Browse files Browse the repository at this point in the history
  • Loading branch information
FGRibreau committed Aug 23, 2016
1 parent 605067c commit 5ccbfcd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
machine:
node:
version: 6.3
environment:
COVERALLS_SERVICE_NAME: circleci

test:
override:
- npm run test
- npm run send-coverage
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"node": "6"
},
"scripts": {
"test": "mocha $(find src -name '*.test.js')",
"test": "npm run test-unit && npm run test-coverage",
"test-unit": "mocha $(find src -name '*.test.js')",
"test-watch": "mocha -R min -w $(find src -name '*.test.js')",
"test-coverage": "nyc --all --statements=100 --lines=100 --functions=90 --branches=70 --check-coverage --reporter=lcov --reporter=cobertura --report-dir=coverage -- mocha -R spec -t 100000 $(find src -name '*.test.js')",
"send-coverage": "cat ./coverage/lcov.info | coveralls",
Expand Down

0 comments on commit 5ccbfcd

Please sign in to comment.