Skip to content

Commit

Permalink
Add code coverage via coveralls.io
Browse files Browse the repository at this point in the history
  • Loading branch information
Michiel ter Reehorst committed Jan 14, 2017
1 parent 6d0dac2 commit 1265699
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
repo_token: LkTCt0dj8vmeTDkJpIRkVeoTUoCkO3CUZ
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules
lib
coverage
npm-debug.log
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ previous-date-range
Calculate a date range in the past from a certain moment

[![Build status](https://api.travis-ci.org/jamiter/previous-date-range.png)](https://travis-ci.org/jamiter/previous-date-range)
[![Coverage Status](https://coveralls.io/repos/github/jamiter/previous-date-range/badge.svg)](https://coveralls.io/github/jamiter/previous-date-range)

## Installation

Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"scripts": {
"prepublish": "npm test -s",
"build": "babel src -d lib",
"cover": "istanbul cover --report json _mocha -- -R spec --compilers js:babel-core/register './tests/**/*.js'",
"cover": "istanbul cover --report lcovonly _mocha -- -R spec --compilers js:babel-core/register './tests/**/*.js'",
"coveralls": "npm run cover && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage",
"lint": "eslint ./src ./test",
"mocha": "npm run build -s && _mocha -R spec --compilers js:babel-core/register './tests/**/*.js'",
"start": "npm run build -s -- -w",
Expand Down Expand Up @@ -35,6 +36,7 @@
"babel-plugin-transform-object-rest-spread": "^6.20.2",
"babel-preset-env": "^1.1.8",
"chai": "^3.5.0",
"coveralls": "^2.11.15",
"eslint": "^3.13.1",
"eslint-config-airbnb-base": "^11.0.1",
"eslint-plugin-import": "^2.2.0",
Expand Down

0 comments on commit 1265699

Please sign in to comment.