Skip to content

Commit

Permalink
Merge pull request #4 from vincentbriglia/codacy
Browse files Browse the repository at this point in the history
codacy
  • Loading branch information
vincentbriglia committed Aug 16, 2016
2 parents 7a70a81 + d426d06 commit a447ee2
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 20 deletions.
12 changes: 7 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
language: node_js
node_js:
- io.js
- '0.12'
- '0.10'
- '4'
- '5'
- '6'
before_install:
- npm install -g npm
before_script:
- npm install -g gulp
- npm install -g codeclimate-test-reporter
script: npm run-script coveralls
script: gulp coverage
branches:
only:
- master
after_script:
- codeclimate < ./coverage/lcov.info
- gulp report-coverage
- gulp report-codacy
env:
global:
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2015, Jivaro ehf. <vincent@jivaro.com>
Copyright (c) 2015 - 2016, Vincent Briglia

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

Expand Down
13 changes: 8 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ var gulp = require('gulp'),
mocha = require('gulp-mocha'),
eslint = require('gulp-eslint'),
istanbul = require('gulp-istanbul'),
codacy = require('gulp-codacy').
codacy = require('gulp-codacy'),
debug = require('gulp-debug'),
coveralls = require('gulp-coveralls');

gulp.task('test', ['eslint'], function () {
Expand All @@ -31,14 +32,16 @@ gulp.task('coverage', ['eslint'], function (done) {
});
});

gulp.task('report-coverage', ['coverage'], function () {
gulp.task('report-coverage', function () {
return gulp.src('./coverage/**/lcov.info')
.pipe(coveralls());
.pipe(debug())
.pipe(coveralls());
});

gulp.task('report-codacy', ['coverage'], function codacyTask() {
gulp.task('report-codacy', function () {
return gulp.src('./coverage/**/lcov.info')
.pipe(codacy());
.pipe(debug())
.pipe(codacy());
});

gulp.task('eslint', function () {
Expand Down
22 changes: 13 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,33 @@
{
"name": "node-emerchantpay",
"version": "0.4.4",
"version": "1.0.0",
"description": "Parameter Signing for Communicating with eMerchantPay Forms",
"main": "./lib/index.js",
"scripts": {
"test": "gulp test",
"coveralls": "gulp report-coverage"
},
"author": "Vincent Briglia <vincent@jivaro.com>",
"author": {
"name": "Vincent Briglia",
"url": "https://github.com/vincentbriglia"
},
"license": "ISC",
"dependencies": {
"debug": "^2.2.0",
"lodash": "^3.10.1",
"sorted-object": "^1.0.0"
"lodash": "^4.15.0",
"sorted-object": "^2.0.0"
},
"devDependencies": {
"chai": "^3.3.0",
"gulp": "^3.9.0",
"gulp-codacy": "^1.0.0",
"gulp-coveralls": "^0.1.4",
"gulp-eslint": "^1.0.0",
"gulp-istanbul": "^0.10.0",
"gulp-mocha": "^2.1.3",
"mocha": "^2.3.3",
"mocha-sinon": "^1.1.4",
"gulp-debug": "^2.1.2",
"gulp-eslint": "^3.0.1",
"gulp-istanbul": "^1.1.0",
"gulp-mocha": "^3.0.1",
"mocha": "^3.0.2",
"mocha-sinon": "^1.1.5",
"sinon": "^1.17.0"
},
"directories": {
Expand Down

0 comments on commit a447ee2

Please sign in to comment.