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
|
.DS_Store
|
||||||
node_modules
|
node_modules
|
||||||
.env
|
.env
|
||||||
|
coverage/*
|
||||||
|
npm-debug.log
|
||||||
|
|
||||||
# Elastic Beanstalk Files
|
# Elastic Beanstalk Files
|
||||||
.elasticbeanstalk/*
|
.elasticbeanstalk/*
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user