Skip to content
This repository has been archived by the owner on Feb 24, 2022. It is now read-only.

Add coveralls.io support #3 #4

Merged
merged 1 commit into from
Jun 22, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
machine:
environment:
COVERALLS_REPO_TOKEN: Vf8OYui1kwrD3HoOBefD4K0sbgpOVz7JO

node:
version: 6.2

dependencies:
override:
- npm install --dev
- npm install --only=dev

test:
post:
- npm run cover
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
"main": "parser.js",
"scripts": {
"test:lint": "./node_modules/eslint/bin/eslint.js ./parser.js",
"test:mocha": "./node_modules/istanbul/lib/cli.js cover _mocha -- tests/* -R spec",
"test": "./node_modules/npm-run-all/bin/npm-run-all/index.js test:*"
"test:mocha": "./node_modules/istanbul/lib/cli.js cover _mocha --report lcovonly -- tests/* -R spec",
"test": "./node_modules/npm-run-all/bin/npm-run-all/index.js test:*",
"cover": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
},
"repository": {
"type": "git",
Expand All @@ -29,6 +30,7 @@
},
"devDependencies": {
"chai": "^3.5.0",
"coveralls": "^2.11.9",
"eslint": "^2.13.1",
"eslint-plugin-mozilla": "0.0.3",
"istanbul": "^0.4.4",
Expand Down