Skip to content

Commit

Permalink
Set up code coverage reports
Browse files Browse the repository at this point in the history
  • Loading branch information
aswitalski committed Apr 3, 2017
1 parent 88649af commit c75ffd9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
language: node_js
node_js:
- "7"
script: npm run travis
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# chromium-reactor
A framework for Chromium-based browsers for building their user interfaces

[![Build Status](https://snap-ci.com/aswitalski/chromium-reactor/branch/master/build_image)](https://snap-ci.com/aswitalski/chromium-reactor/branch/master) [![npm version](https://img.shields.io/npm/v/chromium-reactor.svg?style=flat)](https://www.npmjs.com/package/chromium-reactor)
[![Build Status](https://travis-ci.org/aswitalski/chromium-reactor.svg?branch=master)](https://travis-ci.org/aswitalski/chromium-reactor)
[![Coverage Status](https://coveralls.io/repos/github/aswitalski/chromium-reactor/badge.svg?branch=master)](https://coveralls.io/github/aswitalski/chromium-reactor?branch=master)
[![npm version](https://img.shields.io/npm/v/chromium-reactor.svg?style=flat)](https://www.npmjs.com/package/chromium-reactor)

## What is it?

Expand Down
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"main": "index.js",
"scripts": {
"demo": "node demo/server.js",
"test": "mocha"
"test": "mocha",
"travis": "node_modules/.bin/babel-node node_modules/.bin/babel-istanbul cover node_modules/.bin/_mocha --report lcovonly -- && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage",
"coverage": "node_modules/.bin/babel-node node_modules/.bin/babel-istanbul cover node_modules/.bin/_mocha --"
},
"repository": {
"type": "git",
Expand All @@ -26,6 +28,8 @@
"homepage": "https://github.com/aswitalski/chromium-reactor#readme",
"devDependencies": {
"assert": "^1.4.1",
"babel-cli": "^6.23.0",
"babel-istanbul": "^0.12.1",
"babel-plugin-transform-class-properties": "^6.19.0",
"babel-polyfill": "^6.20.0",
"babel-preset-es2015": "^6.18.0",
Expand All @@ -34,6 +38,7 @@
"express": "^4.14.0",
"mocha": "^3.2.0",
"path": "^0.12.7",
"sinon": "^1.17.7"
"sinon": "^1.17.7",
"tap": "^10.2.1"
}
}

0 comments on commit c75ffd9

Please sign in to comment.