Skip to content

Commit bcb3944

Browse files
authored
Merge pull request #177 from ethereum/coverage
Run code coverage report on coveralls
2 parents 6addf96 + df91d98 commit bcb3944

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

.istanbul.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
instrumentation:
2+
excludes:
3+
- soljson.js

.travis.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,11 @@ branches:
88
# Pull request automation is not constrained to this set of branches.
99
only:
1010
- master
11-
script: npm test
11+
matrix:
12+
fast_finish: true
13+
include:
14+
- os: linux
15+
env: CXX=g++-4.8 TEST_SUITE=test
16+
- os: linux
17+
env: CXX=g++-4.8 TEST_SUITE=coveralls
18+
script: npm run $TEST_SUITE

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
[![Build Status](https://travis-ci.org/ethereum/solc-js.svg?branch=master)](https://travis-ci.org/ethereum/solc-js)
1+
[![Build Status](https://img.shields.io/travis/ethereum/solc-js.svg?branch=master&style=flat-square)](https://travis-ci.org/ethereum/solc-js)
2+
[![Coverage Status](https://img.shields.io/coveralls/ethereum/solc-js.svg?style=flat-square)](https://coveralls.io/r/ethereum/solc-js)
23

34
# solc-js
45
JavaScript bindings for the [Solidity compiler](https://github.com/ethereum/solidity).

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
"lint": "semistandard",
1111
"prepublish": "./downloadCurrentVersion.js && ./verifyVersion.js",
1212
"pretest": "npm run lint",
13-
"test": "tape ./test/index.js"
13+
"test": "tape ./test/index.js",
14+
"coverage": "istanbul cover node_modules/tape/bin/tape ./test/index.js",
15+
"coveralls": "npm run coverage && coveralls <coverage/lcov.info"
1416
},
1517
"repository": {
1618
"type": "git",
@@ -44,7 +46,9 @@
4446
"yargs": "^4.7.1"
4547
},
4648
"devDependencies": {
49+
"coveralls": "^3.0.0",
4750
"ethereumjs-util": "^5.1.4",
51+
"istanbul": "^0.4.5",
4852
"semistandard": "^11.0.0",
4953
"tape": "^4.5.1",
5054
"tape-spawn": "^1.4.2"

0 commit comments

Comments
 (0)