File tree Expand file tree Collapse file tree 4 files changed +35
-1
lines changed Expand file tree Collapse file tree 4 files changed +35
-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
+ - " 0.10"
8
+ - " 0.8"
9
+ - " 0.6"
10
+ - " iojs"
11
+ after_script :
12
+ - npm run coveralls
Original file line number Diff line number Diff line change 1
1
# post2sse
2
2
POST to Server Send Events proxy
3
+
4
+ [ ![ Coverage Status] ( https://coveralls.io/repos/piranna/post2sse/badge.svg?branch=master&service=github )] ( https://coveralls.io/github/piranna/post2sse?branch=master )
Original file line number Diff line number Diff line change 4
4
"description" : " POST to Server Send Events proxy" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
- "test" : " mocha"
7
+ "test" : " mocha" ,
8
+ "coveralls" : " scripts/coveralls"
8
9
},
9
10
"repository" : {
10
11
"type" : " git" ,
31
32
"sse" : " ^0.0.6"
32
33
},
33
34
"devDependencies" : {
35
+ "coveralls" : " ^2.11.6" ,
36
+ "jscoverage" : " piranna/jscoverage" ,
34
37
"mocha" : " ^2.3.4" ,
38
+ "mocha-lcov-reporter" : " ^1.0.0" ,
35
39
"supertest" : " ^1.1.0" ,
36
40
"suppose" : " ^0.4.0"
37
41
}
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