File tree Expand file tree Collapse file tree 3 files changed +30
-1
lines changed Expand file tree Collapse file tree 3 files changed +30
-1
lines changed Original file line number Diff line number Diff line change
1
+ language : node_js
2
+ node_js :
3
+ - " 4.1"
4
+ - " 4.0"
5
+ - " 0.12"
6
+ - " 0.11"
7
+ - " iojs"
8
+ after_script :
9
+ - npm run coveralls
Original file line number Diff line number Diff line change 4
4
"description" : " " ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
- "test" : " mocha"
7
+ "test" : " mocha" ,
8
+ "coveralls" : " scripts/coveralls"
8
9
},
9
10
"keywords" : [
10
11
" Context Broker" ,
17
18
],
18
19
"license" : " AGPL-3.0" ,
19
20
"devDependencies" : {
21
+ "coveralls" : " ^2.11.6" ,
22
+ "jscoverage" : " piranna/jscoverage" ,
20
23
"mocha" : " ^2.4.5" ,
24
+ "mocha-lcov-reporter" : " ^1.0.0" ,
21
25
"nock" : " ^7.0.2"
22
26
},
23
27
"dependencies" : {
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # Create instrumented library
4
+ rm -f index-cov.js
5
+ jscoverage index.js
6
+
7
+ # Replace index.js for instrumented one
8
+ mv index.js index-orig.js
9
+ mv index-cov.js index.js
10
+
11
+ # Run coveralls
12
+ mocha -R mocha-lcov-reporter | coveralls
13
+
14
+ # Restore index.js
15
+ rm -f index.js
16
+ mv index-orig.js index.js
You can’t perform that action at this time.
0 commit comments