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

Commit

Permalink
coveralls integration for raincatcher-core (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Nolan authored and wtrocki committed Aug 4, 2017
1 parent 7821cfb commit d368461
Show file tree
Hide file tree
Showing 15 changed files with 66 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pids
lib-cov

# Coverage directory used by tools like istanbul
coverage
coverage_report/

.idea

Expand Down Expand Up @@ -64,4 +64,4 @@ typings/
### Custom files below

# typedoc generated docs
docs/
docs/
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
script:
- npm run bootstrap
- npm run lint
- npm test
- npm run test-ci
cache:
directories:
- node_modules
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# RainCatcher

[![Build Status](https://travis-ci.org/feedhenry-raincatcher/raincatcher-core.svg?branch=master)](https://travis-ci.org/feedhenry-raincatcher/raincatcher-core) [![Coverage Status](https://coveralls.io/repos/github/feedhenry-raincatcher/raincatcher-core/badge.svg?branch=master)](https://coveralls.io/github/feedhenry-raincatcher/raincatcher-core?branch=master)

Feedhenry RainCatcher Core Repository

## About RainCatcher
Expand Down
5 changes: 5 additions & 0 deletions client/datasync-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
"require": [
"ts-node/register"
],
"reporter": [
"lcov",
"text"
],
"report-dir": "../../coverage_report/client-datasync-client",
"check-coverage": true,
"lines": 75,
"functions": 60,
Expand Down
5 changes: 5 additions & 0 deletions client/wfm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
"ts-node/register",
"source-map-support/register"
],
"reporter": [
"lcov",
"text"
],
"report-dir": "../../coverage_report/client-wfm",
"produce-source-map": true,
"check-coverage": false,
"lines": 75,
Expand Down
5 changes: 5 additions & 0 deletions cloud/datasync/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
"require": [
"ts-node/register"
],
"reporter": [
"lcov",
"text"
],
"report-dir": "../../coverage_report/cloud-datasync",
"check-coverage": true,
"lines": 75,
"functions": 80,
Expand Down
5 changes: 5 additions & 0 deletions cloud/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
"require": [
"ts-node/register"
],
"reporter": [
"lcov",
"text"
],
"report-dir": "../../coverage_report/client-cloud-logger",
"check-coverage": true,
"lines": 75,
"functions": 100,
Expand Down
5 changes: 5 additions & 0 deletions cloud/passportauth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
"require": [
"ts-node/register"
],
"reporter": [
"lcov",
"text"
],
"report-dir": "../../coverage_report/cloud-passportauth",
"check-coverage": true,
"lines": 75,
"functions": 100,
Expand Down
1 change: 1 addition & 0 deletions demo/server/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ src/**/*.js
src/**/*.map
test/**/*.js
test/**/*.map
coverage_report/
7 changes: 6 additions & 1 deletion demo/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"author": "feedhenry-raincatcher@redhat.com",
"license": "Apache-2.0",
"scripts": {
"clean": "del src/*.js src/**/*.js src/*.map src/**/*.map test/**/*.js test/**/*.map",
"clean": "del coverage_report src/*.js src/**/*.js src/*.map src/**/*.map test/**/*.js test/**/*.map",
"build": "tsc",
"start": "ts-node src/index.ts",
"test": "nyc mocha"
Expand All @@ -22,6 +22,11 @@
"require": [
"ts-node/register"
],
"reporter": [
"lcov",
"text"
],
"report-dir": "coverage_report",
"check-coverage": true,
"lines": 75,
"functions": 60,
Expand Down
15 changes: 12 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,19 @@
"main": "index.js",
"scripts": {
"test": "lerna run test",
"test-ci": "npm-run-all test coverage:*",
"coverage:create-file": "echo '' > ./coverage_report/coverage_merged.info",
"coverage:merge-reports": "lcov-result-merger './coverage_report/*/lcov.info' './coverage_report/coverage_merged.info'",
"coverage:upload-coveralls": "cat ./coverage_report/coverage_merged.info | coveralls",
"cleanInstall": "lerna exec npm install --ignore-scripts",
"bootstrap": "lerna bootstrap",
"start": "lerna run start --parallel --stream --scope=@raincatcher/demo-*",
"docs": "lerna exec -- typedoc --out docs/ --excludePrivate",
"lint": "tslint '*/*/src/**/*.ts' '*/*/test/**/*.ts'",
"build": "lerna run build",
"clean": "lerna run clean"
"clean": "npm-run-all clean:*",
"clean:coverage": "del coverage_report",
"clean:packages": "lerna run clean"
},
"repository": {
"type": "git",
Expand All @@ -24,10 +30,13 @@
},
"homepage": "https://github.com/feedhenry-raincatcher/raincatcher#readme",
"devDependencies": {
"coveralls": "^2.13.1",
"del-cli": "^1.0.0",
"lcov-result-merger": "^1.2.0",
"lerna": "^2.0.0-rc.5",
"npm-run-all": "^4.0.2",
"tslint": "^5.4.3",
"typescript": "^2.3.4"
},
"dependencies": {
}
"dependencies": {}
}
1 change: 1 addition & 0 deletions templates/base/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ src/**/*.js
src/**/*.map
test/**/*.js
test/**/*.map
coverage_report/
8 changes: 7 additions & 1 deletion templates/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"license": "Apache-2.0",
"main": "src/",
"scripts": {
"clean": "del src/**/*.js src/**/*.map test/**/*.js test/**/*.map",
"clean": "del coverage_report src/**/*.js src/**/*.map test/**/*.js test/**/*.map",
"build": "tsc",
"start": "ts-node src/index.ts",
"test": "npm run clean && nyc mocha"
Expand All @@ -22,6 +22,11 @@
"require": [
"ts-node/register"
],
"reporter": [
"lcov",
"text"
],
"report-dir": "coverage_report",
"check-coverage": true,
"lines": 75,
"functions": 100,
Expand All @@ -39,3 +44,4 @@
"typescript": "^2.3.4"
}
}

1 change: 1 addition & 0 deletions templates/javascript-usage/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
coverage_report/
7 changes: 7 additions & 0 deletions templates/javascript-usage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"author": "feedhenry-raincatcher@redhat.com",
"license": "Apache-2.0",
"scripts": {
"clean": "del coverage_report",
"test": "nyc mocha",
"debug": "node --inspect-brk node_modules/.bin/_mocha",
"debug-legacy": "mocha --debug-brk"
Expand All @@ -14,6 +15,11 @@
"include": [
"lib/**/*.js"
],
"reporter": [
"lcov",
"text"
],
"report-dir": "coverage_report",
"check-coverage": true,
"lines": 75,
"functions": 100,
Expand All @@ -23,6 +29,7 @@
"@raincatcher/example-base": "1.0.0"
},
"devDependencies": {
"del-cli": "^1.0.0",
"mocha": "^3.4.2",
"source-map-support": "^0.4.15",
"nyc": "^11.0.1"
Expand Down

0 comments on commit d368461

Please sign in to comment.