Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run code coverage report on coveralls #177

Merged
merged 4 commits into from
Feb 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .istanbul.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
instrumentation:
excludes:
- soljson.js
9 changes: 8 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,11 @@ branches:
# Pull request automation is not constrained to this set of branches.
only:
- master
script: npm test
matrix:
fast_finish: true
include:
- os: linux
env: CXX=g++-4.8 TEST_SUITE=test
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not strictly needed as pretest includes it.

- os: linux
env: CXX=g++-4.8 TEST_SUITE=coveralls
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CXX flags aren't needed here

script: npm run $TEST_SUITE
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![Build Status](https://travis-ci.org/ethereum/solc-js.svg?branch=master)](https://travis-ci.org/ethereum/solc-js)
[![Build Status](https://img.shields.io/travis/ethereum/solc-js.svg?branch=master&style=flat-square)](https://travis-ci.org/ethereum/solc-js)
[![Coverage Status](https://img.shields.io/coveralls/ethereum/solc-js.svg?style=flat-square)](https://coveralls.io/r/ethereum/solc-js)

# solc-js
JavaScript bindings for the [Solidity compiler](https://github.com/ethereum/solidity).
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
"lint": "semistandard",
"prepublish": "./downloadCurrentVersion.js && ./verifyVersion.js",
"pretest": "npm run lint",
"test": "tape ./test/index.js"
"test": "tape ./test/index.js",
"coverage": "istanbul cover node_modules/tape/bin/tape ./test/index.js",
"coveralls": "npm run coverage && coveralls <coverage/lcov.info"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -44,7 +46,9 @@
"yargs": "^4.7.1"
},
"devDependencies": {
"coveralls": "^3.0.0",
"ethereumjs-util": "^5.1.4",
"istanbul": "^0.4.5",
"semistandard": "^11.0.0",
"tape": "^4.5.1",
"tape-spawn": "^1.4.2"
Expand Down