Add code coverage and upload to Codecov.io
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,6 +1,8 @@
|
||||
.DS_Store
|
||||
node_modules
|
||||
.env
|
||||
coverage/*
|
||||
npm-debug.log
|
||||
|
||||
# Elastic Beanstalk Files
|
||||
.elasticbeanstalk/*
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user