Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Set up travis to run coverage for Node 7 and post report to coveralls

Peter Müller820d61639a95
diff --git a/.travis.yml b/.travis.yml
index a80e4983..553966a6 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,7 +16,7 @@ matrix:
fast_finish: true
include:
- node_js: '7'
- env: TARGET=test-node
+ env: TARGET=test-node COVERAGE=true
- node_js: '6'
env: TARGET=test-node
- node_js: '5'
@@ -42,6 +42,8 @@ before_script: scripts/travis-before-script.sh
script: make $TARGET
+after_success: "npm run postcoverage && <coverage/lcov.info ./node_modules/coveralls/bin/coveralls.js"
+
notifications:
urls:
# for gitter
diff --git a/package.json b/package.json
index 85e6a455..5f2b93cc 100644
--- a/package.json
+++ b/package.json
@@ -321,6 +321,7 @@
"assert": "^1.4.1",
"browserify": "^13.0.0",
"coffee-script": "^1.10.0",
+ "coveralls": "^2.11.15",
"eslint": "^3.11.1",
"eslint-config-semistandard": "^7.0.0",
"eslint-config-standard": "^6.2.1",