Skip to content

Commit

Permalink
Merge 8b5f492 into 666fd5d
Browse files Browse the repository at this point in the history
  • Loading branch information
mweibel committed Apr 6, 2016
2 parents 666fd5d + 8b5f492 commit f19e9d3
Show file tree
Hide file tree
Showing 13 changed files with 220 additions and 244 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"extends": ["standard"]}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules
/coverage
npm-debug.log
.DS_Store
15 changes: 0 additions & 15 deletions .jshintrc

This file was deleted.

23 changes: 19 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
#
# .travis.yml
#

language: node_js
node_js:
- "0.10"
- "0.12"
- "5"
- "4.4"
- "4.3"
- "4.2"
- "4.1"
- "4.0"
sudo: false

script:
- npm run lint
- npm run test-coverage
- npm run coveralls

cache:
directories:
- node_modules
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# LCOV Result Merger
[![Build Status](https://travis-ci.org/mweibel/lcov-result-merger.png)](https://travis-ci.org/mweibel/lcov-result-merger)
[![Coverage Status](https://coveralls.io/repos/github/mweibel/lcov-result-merger/badge.svg?branch=master)](https://coveralls.io/github/mweibel/lcov-result-merger?branch=master)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)

When you have multiple test suites for the same application you still want to
have the code coverage across all testsuites.
Expand Down
42 changes: 21 additions & 21 deletions bin/lcov-result-merger.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
#!/usr/bin/env node

var vfs = require('vinyl-fs'),
through = require('through2'),
fs = require('fs'),
lcovResultMerger = require('../index');
var vfs = require('vinyl-fs')
var through = require('through2')
var fs = require('fs')
var lcovResultMerger = require('../index')

if (process.argv.length < 3) {
console.error("");
console.error("Usage: node lcov-result-merger 'pattern'" +
" ['output file']");
console.error("EX: node lcov-result-merger 'target/**/lcov.out'" +
" 'target/lcov-merged.out'");
console.error("");
process.exit(1);
console.error('')
console.error("Usage: node lcov-result-merger 'pattern'" +
" ['output file']")
console.error("EX: node lcov-result-merger 'target/**/lcov.out'" +
" 'target/lcov-merged.out'")
console.error('')
process.exit(1)
}

var files = process.argv[2];
var outputFile = process.argv[3];
var files = process.argv[2]
var outputFile = process.argv[3]

vfs.src(files)
.pipe(lcovResultMerger())
.pipe(through.obj(function (file) {
if ( outputFile ) {
fs.writeFileSync(outputFile, file.contents);
} else {
process.stdout.write(file.contents);
}
}));
.pipe(lcovResultMerger())
.pipe(through.obj(function (file) {
if (outputFile) {
fs.writeFileSync(outputFile, file.contents)
} else {
process.stdout.write(file.contents)
}
}))
30 changes: 0 additions & 30 deletions gulpfile.js

This file was deleted.

Loading

0 comments on commit f19e9d3

Please sign in to comment.