mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-10 19:06:34 +03:00
Fix coveralls report
This commit is contained in:
parent
76f06b1992
commit
a95b014e9a
|
@ -20,17 +20,24 @@ gulp.task('test', ['concatPrism', 'inlineTemplates', 'injectVersionFile'], funct
|
|||
function remapCoverage(done, statusCode) {
|
||||
console.log('Remapping coverage to TypeScript format...');
|
||||
gulp.src('coverage/**/coverage-final.json')
|
||||
.pipe(remapIstanbul({
|
||||
reports: {
|
||||
'lcovonly': 'coverage/remap/lcov.info',
|
||||
'text-summary': 'coverage/remap/text-summary.txt',
|
||||
'html': 'coverage/remap'
|
||||
}
|
||||
}))
|
||||
.on('finish', function () {
|
||||
console.log('Remapping done!');
|
||||
console.log(cat('coverage/remap/text-summary.txt').stdout);
|
||||
console.log('Test Done with exit code: ' + statusCode);
|
||||
done(statusCode);
|
||||
});
|
||||
.pipe(remapIstanbul({
|
||||
reports: {
|
||||
'lcovonly': 'coverage/lcov.info',
|
||||
'text-summary': 'coverage/text-summary.txt',
|
||||
'html': 'coverage'
|
||||
}
|
||||
}))
|
||||
.on('finish', function () {
|
||||
console.log('Remapping done!');
|
||||
console.log(cat('coverage/text-summary.txt').stdout);
|
||||
console.log('Test Done with exit code: ' + statusCode);
|
||||
if (process.env.TRAVIS) {
|
||||
console.log('uploading to coveralls')
|
||||
var out = cat('coverage/lcov.info').exec('coveralls');
|
||||
if (out.code !== 0) {
|
||||
console.warn('Failed upload to coveralls');
|
||||
}
|
||||
}
|
||||
done(statusCode);
|
||||
});
|
||||
};
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
module.exports = function (config) {
|
||||
var travis = process.env.TRAVIS;
|
||||
config.set({
|
||||
frameworks: ['phantomjs-shim', 'jspm', 'jasmine', 'sinon', 'should'],
|
||||
preprocessors: {
|
||||
|
@ -66,7 +65,7 @@ module.exports = function (config) {
|
|||
'/jspm_packages/': '/base/jspm_packages/',
|
||||
'/node_modules/': '/base/node_modules/'
|
||||
},
|
||||
reporters: travis ? ['mocha', 'coverage', 'coveralls'] : ['mocha', 'coverage'],
|
||||
reporters: ['mocha', 'coverage'],
|
||||
|
||||
browsers: ['PhantomJS'],
|
||||
|
||||
|
|
|
@ -82,6 +82,7 @@
|
|||
"branch-release": "^0.3.2",
|
||||
"browser-sync": "^2.10.1",
|
||||
"codelyzer": "0.0.23",
|
||||
"coveralls": "^2.11.9",
|
||||
"del": "^2.2.0",
|
||||
"deploy-to-gh-pages": "^1.0.0",
|
||||
"dropkickjs": "github:robdel12/DropKick",
|
||||
|
@ -108,7 +109,6 @@
|
|||
"karma-babel-preprocessor": "^5.2.2",
|
||||
"karma-chrome-launcher": "^0.2.2",
|
||||
"karma-coverage": "github:douglasduteil/karma-coverage#next",
|
||||
"karma-coveralls": "^1.1.2",
|
||||
"karma-jasmine": "^0.3.6",
|
||||
"karma-jspm": "^2.1.1",
|
||||
"karma-mocha-reporter": "^2.0.0",
|
||||
|
|
Loading…
Reference in New Issue
Block a user