Add code coverage and upload to Codecov.io

This commit is contained in:
Samer Albahra
2015-07-12 15:16:39 -05:00
parent 34752edd74
commit a4d466e0e8
3 changed files with 7 additions and 0 deletions

2
.gitignore vendored
View File

@@ -1,6 +1,8 @@
.DS_Store .DS_Store
node_modules node_modules
.env .env
coverage/*
npm-debug.log
# Elastic Beanstalk Files # Elastic Beanstalk Files
.elasticbeanstalk/* .elasticbeanstalk/*

View File

@@ -8,5 +8,8 @@ before_install:
install: npm install install: npm install
before_script: before_script:
- grunt - 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: notifications:
on_failure: change on_failure: change

View File

@@ -18,9 +18,11 @@
}, },
"devDependencies": { "devDependencies": {
"chai": "^3.0.0", "chai": "^3.0.0",
"codecov.io": "^0.1.5",
"grunt": "^0.4.5", "grunt": "^0.4.5",
"grunt-contrib-jshint": "^0.11.2", "grunt-contrib-jshint": "^0.11.2",
"hippie": "^0.3.0", "hippie": "^0.3.0",
"istanbul": "^0.3.17",
"mocha": "^2.2.5", "mocha": "^2.2.5",
"nock": "^2.7.0" "nock": "^2.7.0"
} }