switched from coveralls to codecov
This commit is contained in:
parent
112ce2d0d6
commit
570046ff67
@ -39,7 +39,7 @@ Then use it in package.json's script section to trigger a build:
|
|||||||
1. Instrumentalize created JavaScript files with istanbul
|
1. Instrumentalize created JavaScript files with istanbul
|
||||||
1. Run Tests
|
1. Run Tests
|
||||||
1. Create Coverage report
|
1. Create Coverage report
|
||||||
1. Upload Coverage reports to travis (Tests must pass, Coveralls must be activated, by default only triggers on travis)
|
1. Upload Coverage reports to codecov.io (Tests must pass, codecov.io must be activated, by default only triggers on travis)
|
||||||
1. Upload JsDoc Documentation to gh-pages branch on GitHub. (Tests must pass, requires GitHub Token)
|
1. Upload JsDoc Documentation to gh-pages branch on GitHub. (Tests must pass, requires GitHub Token)
|
||||||
|
|
||||||
#### npmts.json
|
#### npmts.json
|
||||||
|
4
dist/npmts.options.js
vendored
4
dist/npmts.options.js
vendored
@ -31,8 +31,8 @@ exports.run = function (configArg) {
|
|||||||
exports.isRelease() && exports.doPublish() ? plugins.beautylog.info("All right: This is the first subBuild, so this one publishes coverage and docs when tests succeed!")
|
exports.isRelease() && exports.doPublish() ? plugins.beautylog.info("All right: This is the first subBuild, so this one publishes coverage and docs when tests succeed!")
|
||||||
: plugins.beautylog.info("We are not publishing anything!");
|
: plugins.beautylog.info("We are not publishing anything!");
|
||||||
// handle coveralls
|
// handle coveralls
|
||||||
config.coveralls ? void (0) : config.coveralls = false;
|
config.codecov ? void (0) : config.codecov = true;
|
||||||
exports.doPublish() ? void (0) : config.coveralls = false;
|
exports.doPublish() ? void (0) : config.codecov = false;
|
||||||
config.coverageTreshold ? void (0) : config.coverageTreshold = 70;
|
config.coverageTreshold ? void (0) : config.coverageTreshold = 70;
|
||||||
// handle docs
|
// handle docs
|
||||||
config.docs ? void (0) : config.docs = {};
|
config.docs ? void (0) : config.docs = {};
|
||||||
|
2
dist/npmts.plugins.js
vendored
2
dist/npmts.plugins.js
vendored
@ -4,7 +4,7 @@ exports.beautylog = require("beautylog");
|
|||||||
exports.fs = require("fs-extra");
|
exports.fs = require("fs-extra");
|
||||||
exports.gulp = require("gulp");
|
exports.gulp = require("gulp");
|
||||||
exports.g = {
|
exports.g = {
|
||||||
coveralls: require("gulp-coveralls"),
|
codecov: require("gulp-codecov"),
|
||||||
gFunction: require("gulp-function"),
|
gFunction: require("gulp-function"),
|
||||||
istanbul: require("gulp-istanbul"),
|
istanbul: require("gulp-istanbul"),
|
||||||
jsdoc3: require("gulp-jsdoc3"),
|
jsdoc3: require("gulp-jsdoc3"),
|
||||||
|
2
dist/npmts.publish.js
vendored
2
dist/npmts.publish.js
vendored
@ -7,7 +7,7 @@ exports.run = function (configArg) {
|
|||||||
var done = plugins.Q.defer();
|
var done = plugins.Q.defer();
|
||||||
var config = configArg;
|
var config = configArg;
|
||||||
var promiseArray = [];
|
var promiseArray = [];
|
||||||
config.coveralls ? promiseArray.push(NpmtsTests.publishCoverage(configArg)) : void (0);
|
config.codecov ? promiseArray.push(NpmtsTests.publishCoverage(configArg)) : void (0);
|
||||||
config.docs.publish ? promiseArray.push(NpmtsJsdoc.publishDocs(configArg)) : void (0);
|
config.docs.publish ? promiseArray.push(NpmtsJsdoc.publishDocs(configArg)) : void (0);
|
||||||
promiseArray.length === 0 ? plugins.beautylog.info("Did not publish anything!") : void (0);
|
promiseArray.length === 0 ? plugins.beautylog.info("Did not publish anything!") : void (0);
|
||||||
plugins.Q.all(promiseArray).then(done.resolve);
|
plugins.Q.all(promiseArray).then(done.resolve);
|
||||||
|
2
dist/npmts.tests.js
vendored
2
dist/npmts.tests.js
vendored
@ -6,7 +6,7 @@ exports.publishCoverage = function (configArg) {
|
|||||||
var done = plugins.Q.defer();
|
var done = plugins.Q.defer();
|
||||||
plugins.beautylog.log("now uploading coverage data to coveralls");
|
plugins.beautylog.log("now uploading coverage data to coveralls");
|
||||||
var stream = plugins.gulp.src([plugins.path.join(paths.cwd, "./coverage/lcov.info")])
|
var stream = plugins.gulp.src([plugins.path.join(paths.cwd, "./coverage/lcov.info")])
|
||||||
.pipe(plugins.g.coveralls())
|
.pipe(plugins.g.codecov())
|
||||||
.pipe(plugins.g.gFunction(function () {
|
.pipe(plugins.g.gFunction(function () {
|
||||||
plugins.beautylog.ok("Coverage data has been uploaded to Coveralls!");
|
plugins.beautylog.ok("Coverage data has been uploaded to Coveralls!");
|
||||||
done.resolve(configArg);
|
done.resolve(configArg);
|
||||||
|
@ -28,8 +28,8 @@
|
|||||||
"beautylog": "3.1.2",
|
"beautylog": "3.1.2",
|
||||||
"fs-extra": "^0.26.7",
|
"fs-extra": "^0.26.7",
|
||||||
"gulp": "3.9.1",
|
"gulp": "3.9.1",
|
||||||
|
"gulp-codecov": "^2.0.1",
|
||||||
"gulp-concat": "^2.6.0",
|
"gulp-concat": "^2.6.0",
|
||||||
"gulp-coveralls": "^0.1.4",
|
|
||||||
"gulp-function": "^1.2.0",
|
"gulp-function": "^1.2.0",
|
||||||
"gulp-if": "^2.0.0",
|
"gulp-if": "^2.0.0",
|
||||||
"gulp-istanbul": "^0.10.3",
|
"gulp-istanbul": "^0.10.3",
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
"./subts2/typings.json",
|
"./subts2/typings.json",
|
||||||
"./customdir/typings.json"
|
"./customdir/typings.json"
|
||||||
],
|
],
|
||||||
"coveralls":true,
|
"codecov":true,
|
||||||
"docs": {
|
"docs": {
|
||||||
"publish":true
|
"publish":true
|
||||||
},
|
},
|
||||||
|
@ -37,8 +37,8 @@ export var run = function(configArg){
|
|||||||
: plugins.beautylog.info("We are not publishing anything!");
|
: plugins.beautylog.info("We are not publishing anything!");
|
||||||
|
|
||||||
// handle coveralls
|
// handle coveralls
|
||||||
config.coveralls ? void(0) : config.coveralls = false;
|
config.codecov ? void(0) : config.codecov = true;
|
||||||
doPublish() ? void(0) : config.coveralls = false;
|
doPublish() ? void(0) : config.codecov = false;
|
||||||
|
|
||||||
config.coverageTreshold ? void(0) : config.coverageTreshold = 70;
|
config.coverageTreshold ? void(0) : config.coverageTreshold = 70;
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ export let beautylog = require("beautylog");
|
|||||||
export let fs = require("fs-extra");
|
export let fs = require("fs-extra");
|
||||||
export let gulp = require("gulp");
|
export let gulp = require("gulp");
|
||||||
export let g = {
|
export let g = {
|
||||||
coveralls: require("gulp-coveralls"),
|
codecov: require("gulp-codecov"),
|
||||||
gFunction: require("gulp-function"),
|
gFunction: require("gulp-function"),
|
||||||
istanbul: require("gulp-istanbul"),
|
istanbul: require("gulp-istanbul"),
|
||||||
jsdoc3: require("gulp-jsdoc3"),
|
jsdoc3: require("gulp-jsdoc3"),
|
||||||
|
@ -9,7 +9,7 @@ export let run = function(configArg){
|
|||||||
let done = plugins.Q.defer();
|
let done = plugins.Q.defer();
|
||||||
let config = configArg;
|
let config = configArg;
|
||||||
let promiseArray = [];
|
let promiseArray = [];
|
||||||
config.coveralls ? promiseArray.push(NpmtsTests.publishCoverage(configArg)) : void(0);
|
config.codecov ? promiseArray.push(NpmtsTests.publishCoverage(configArg)) : void(0);
|
||||||
config.docs.publish ? promiseArray.push(NpmtsJsdoc.publishDocs(configArg)) : void(0);
|
config.docs.publish ? promiseArray.push(NpmtsJsdoc.publishDocs(configArg)) : void(0);
|
||||||
promiseArray.length === 0 ? plugins.beautylog.info("Did not publish anything!") : void(0);
|
promiseArray.length === 0 ? plugins.beautylog.info("Did not publish anything!") : void(0);
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ export let publishCoverage = function(configArg){
|
|||||||
let done = plugins.Q.defer();
|
let done = plugins.Q.defer();
|
||||||
plugins.beautylog.log("now uploading coverage data to coveralls");
|
plugins.beautylog.log("now uploading coverage data to coveralls");
|
||||||
var stream = plugins.gulp.src([plugins.path.join(paths.cwd,"./coverage/lcov.info")])
|
var stream = plugins.gulp.src([plugins.path.join(paths.cwd,"./coverage/lcov.info")])
|
||||||
.pipe(plugins.g.coveralls())
|
.pipe(plugins.g.codecov())
|
||||||
.pipe(plugins.g.gFunction(function(){
|
.pipe(plugins.g.gFunction(function(){
|
||||||
plugins.beautylog.ok("Coverage data has been uploaded to Coveralls!");
|
plugins.beautylog.ok("Coverage data has been uploaded to Coveralls!");
|
||||||
done.resolve(configArg);
|
done.resolve(configArg);
|
||||||
|
Loading…
Reference in New Issue
Block a user