Skip to content

Commit

Permalink
limit coveralls from styleguide dir (#1019)
Browse files Browse the repository at this point in the history
* attempting to limit coveralls from styleguide dir

* try more things for coveragerc

* work on format of coveragerc

* more work on format of coveragerc

* try editing the karma.conf.js file for limiting coverage

* more karma edits

* more karma edits

* trying travis.yml instead

* trying lcov-filter

* try to write my own parser

* remove lcov-filter

* rename script to be more descriptive
  • Loading branch information
abemassry authored and Matthew Parke committed Jan 18, 2017
1 parent 12157b1 commit 269b5d6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -9,5 +9,5 @@ script:
export const LISH_ROOT = 'wss://lish.alpha.linode.com';
EOF
- npm test
- cat ./coverage/lcov.info | ./node_modules/.bin/coveralls
- cat ./coverage/lcov.info | node ./bin/styleguideTestFilter.js | ./node_modules/.bin/coveralls
- npm run lint
9 changes: 9 additions & 0 deletions bin/styleguideTestFilter.js
@@ -0,0 +1,9 @@
process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function(data) {
var changed = data.replace(/^TN:\n^.*styleguide[\s\S]*?^end_of_record$/gm, "");
changed = changed.replace(/\n\n/gm,"");
changed = changed.replace(/end_of_recordTN:/, "end_of_record\nTN:");
process.stdout.write(changed);
});

0 comments on commit 269b5d6

Please sign in to comment.