Skip to content

Commit 40536f3

Browse files
authored
Add coverage via coveralls.io
1 parent cbcff23 commit 40536f3

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
.DS_STORE
33
npm-debug.log
4+
coverage

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ node_js:
33
- 4
44
- 6
55
- 7
6+
script: npm run lint && npm run test-coveralls

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![gulp-requirejs on npm](https://img.shields.io/npm/v/gulp-requirejs.svg?style=flat)](https://www.npmjs.com/package/gulp-requirejs)
44
[![Dependency Status](https://david-dm.org/jorrit/gulp-requirejs.png)](https://david-dm.org/jorrit/gulp-requirejs)
55
[![Build Status](https://travis-ci.org/jorrit/gulp-requirejs.png?branch=master)](https://travis-ci.org/jorrit/gulp-requirejs)
6+
[![Coverage](https://coveralls.io/repos/github/jorrit/gulp-requirejs/badge.svg)](https://coveralls.io/github/jorrit/gulp-requirejs)
67

78
## Information
89

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@
1414
"requirejs": "^2.3.2"
1515
},
1616
"devDependencies": {
17+
"coveralls": "^2.11.16",
1718
"eslint": "^3.15.0",
19+
"istanbul": "^0.4.5",
1820
"mocha": "^3.2.0",
21+
"mocha-lcov-reporter": "^1.2.0",
1922
"should": "^11.2.0"
2023
},
2124
"engines": {
@@ -36,6 +39,7 @@
3639
"scripts": {
3740
"lint": "eslint .",
3841
"pretest": "npm run lint",
39-
"test": "mocha"
42+
"test": "mocha",
43+
"test-coveralls": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
4044
}
4145
}

0 commit comments

Comments
 (0)