Skip to content

Commit

Permalink
Setup coverage in codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
SBoudrias committed Jun 18, 2017
1 parent 62fde13 commit 60b27f0
Show file tree
Hide file tree
Showing 4 changed files with 182 additions and 53 deletions.
9 changes: 6 additions & 3 deletions .travis.yml
@@ -1,8 +1,11 @@
sudo: false
language: node_js
node_js:
- 4
- 6
- node
- 4
- 6
- node
cache:
yarn: true
env:
global:
secure: dHdnulkfL3Es9kaH0JVFwPk5VUeD7fdiMYdNaId09ZTa9mL9BvYcHmeVK5g1ZIm1F0+QmLeJwjO+4dq1yjRz6IFnpbgQSlhIbYjs+8zBc1v+HTZZfB/kFRIqHO0x4nJG8vKVa+Sg5tp0pI7hiCgevsrlvf4Pb6D0Cyx+faSGNrY=
4 changes: 3 additions & 1 deletion gulpfile.js
Expand Up @@ -8,6 +8,7 @@ var istanbul = require('gulp-istanbul');
var nsp = require('gulp-nsp');
var plumber = require('gulp-plumber');
var coveralls = require('gulp-coveralls');
var codacy = require('gulp-codacy');

gulp.task('static', function () {
return gulp.src('**/*.js')
Expand Down Expand Up @@ -55,7 +56,8 @@ gulp.task('coveralls', ['test'], function () {
}

return gulp.src(path.join(__dirname, 'coverage/lcov.info'))
.pipe(coveralls());
.pipe(coveralls())
.pipe(codacy());
});

gulp.task('prepublish', ['nsp']);
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -43,6 +43,7 @@
"eslint": "^4.0.0",
"eslint-config-xo-space": "^0.16.0",
"gulp": "^3.9.0",
"gulp-codacy": "^1.0.0",
"gulp-coveralls": "^0.1.0",
"gulp-eslint": "^4.0.0",
"gulp-exclude-gitignore": "^1.0.0",
Expand Down

0 comments on commit 60b27f0

Please sign in to comment.