Skip to content
This repository has been archived by the owner on Aug 17, 2018. It is now read-only.

Commit

Permalink
Feature/coverage (#55)
Browse files Browse the repository at this point in the history
* Compute coverage when running tests

* Attempt to link istanbul and coveralls
  • Loading branch information
bassosimone committed Apr 18, 2016
1 parent 1b4e1d0 commit 3cc1279
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.DS_Store
/coverage
/node_modules
/npm-debug.log
/roarmap.db
Expand Down
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

language: node_js
node_js:
- 5
script:
- npm test
- npm run-script istanbul
- npm run-script coveralls
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ROARMAP H2020 View

[![Build Status](https://travis-ci.org/nexacenter/roarmap-h2020-view.svg?branch=master)](https://travis-ci.org/nexacenter/roarmap-h2020-view) [![bitHound Overall Score](https://www.bithound.io/github/nexacenter/roarmap-h2020-view/badges/score.svg)](https://www.bithound.io/github/nexacenter/roarmap-h2020-view)
[![Build Status](https://travis-ci.org/nexacenter/roarmap-h2020-view.svg?branch=master)](https://travis-ci.org/nexacenter/roarmap-h2020-view) [![bitHound Overall Score](https://www.bithound.io/github/nexacenter/roarmap-h2020-view/badges/score.svg)](https://www.bithound.io/github/nexacenter/roarmap-h2020-view) [![Coverage Status](https://coveralls.io/repos/github/nexacenter/roarmap-h2020-view/badge.svg?branch=master)](https://coveralls.io/github/nexacenter/roarmap-h2020-view?branch=master)

View H2020 compliancy of [ROARMAP](http://roarmap.eprints.org/)
policies through a local webserver that fetches data directly from
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"main": "index.js",
"scripts": {
"prestart": "./node_modules/.bin/browserify ./lib/common/rules.js ./lib/client/app.js -o static/app.bundle.js",
"test": "./node_modules/.bin/mocha --recursive ./test/"
"test": "./node_modules/.bin/_mocha --recursive ./test/",
"istanbul": "./node_modules/.bin/istanbul cover -- ./node_modules/.bin/_mocha --recursive ./test/",
"coveralls": "./node_modules/.bin/coveralls < coverage/lcov.info"
},
"repository": "https://github.com/nexacenter/roarmap-h2020-view",
"author": "Simone Basso",
Expand All @@ -25,7 +27,9 @@
},
"devDependencies": {
"chai": "^3.5.0",
"coveralls": "^2.11.9",
"equals": "^1.0.1",
"istanbul": "^0.4.3",
"js-beautify": "^1.6.2",
"jshint": "^2.9.1",
"mocha": "^2.4.5"
Expand Down

0 comments on commit 3cc1279

Please sign in to comment.