first commit
This commit is contained in:
14
node_modules/indefinite/gulp/codeclimate.js
generated
vendored
Normal file
14
node_modules/indefinite/gulp/codeclimate.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
const gulp = require('gulp');
|
||||
const codeclimate = require('gulp-codeclimate-reporter');
|
||||
|
||||
gulp.task('codeclimate', (done) => {
|
||||
if (process.version.indexOf('v8') > -1) {
|
||||
return gulp.src('coverage/lcov.info', { read: false })
|
||||
.pipe(codeclimate({
|
||||
token: process.env.CODECLIMATE_REPO_TOKEN
|
||||
}));
|
||||
} else {
|
||||
done();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user