diff --git a/.gitignore b/.gitignore index 7f13267..ae237c3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ .DS_Store node_modules .env +coverage/* +npm-debug.log # Elastic Beanstalk Files .elasticbeanstalk/* diff --git a/.travis.yml b/.travis.yml index 5c5030c..cf67f96 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,5 +8,8 @@ before_install: install: npm install before_script: - grunt +after_script: + - istanbul cover ./node_modules/mocha/bin/_mocha -- -R spec + - cat coverage/lcov.info | ./node_modules/codecov.io/bin/codecov.io.js notifications: on_failure: change diff --git a/package.json b/package.json index 20c0a8b..6d20d5a 100644 --- a/package.json +++ b/package.json @@ -18,9 +18,11 @@ }, "devDependencies": { "chai": "^3.0.0", + "codecov.io": "^0.1.5", "grunt": "^0.4.5", "grunt-contrib-jshint": "^0.11.2", "hippie": "^0.3.0", + "istanbul": "^0.3.17", "mocha": "^2.2.5", "nock": "^2.7.0" }