Try to get TS coverage

This commit is contained in:
Alex Dima 2016-08-18 13:29:58 +02:00
parent bdcc1977e3
commit 8fb191d692
3 changed files with 4 additions and 2 deletions

View file

@ -49,4 +49,5 @@ script:
- ./scripts/test-integration.sh
after_success:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then node_modules/.bin/coveralls < .build/coverage/lcov.info; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then node_modules/.bin/remap-istanbul -i ./.build/coverage/coverage-final.json -t lcovonly > ./.build/coverage/lcov-remap.info; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then node_modules/.bin/coveralls < .build/coverage/lcov-remap.info; fi

View file

@ -80,6 +80,7 @@
"object-assign": "^4.0.1",
"optimist": "0.3.5",
"queue": "3.0.6",
"remap-istanbul": "^0.6.4",
"rimraf": "^2.2.8",
"sinon": "^1.17.2",
"source-map": "^0.4.4",

View file

@ -108,7 +108,7 @@ function main() {
collector.add(global.__coverage__);
var reporter = new istanbul.Reporter(null, path.join(path.dirname(__dirname), '.build', 'coverage'));
reporter.addAll(['lcov', 'html']);
reporter.addAll(['json', 'lcov', 'html']);
reporter.write(collector, true, function () {});
});
}