You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ra...@apache.org on 2018/08/27 09:20:49 UTC
[cordova-lib] branch master updated: Report code coverage to
codecov on Travis CI (#667)
This is an automated email from the ASF dual-hosted git repository.
raphinesse pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-lib.git
The following commit(s) were added to refs/heads/master by this push:
new b77f5ae Report code coverage to codecov on Travis CI (#667)
b77f5ae is described below
commit b77f5aeeab61e6d0a0691cfb587af298861dc215
Author: Raphael von der GrĂ¼n <ra...@gmail.com>
AuthorDate: Mon Aug 27 11:20:47 2018 +0200
Report code coverage to codecov on Travis CI (#667)
---
.travis.yml | 3 ++-
package.json | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/.travis.yml b/.travis.yml
index dc58f69..74deef0 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -17,4 +17,5 @@ install:
#- (cd cordova-fetch && npm install && npm link ../cordova-common)
script:
- - "npm test"
+ - npm run cover
+ - npm run report-coverage
diff --git a/package.json b/package.json
index b238d95..df66082 100644
--- a/package.json
+++ b/package.json
@@ -62,6 +62,7 @@
"eslint": "eslint src spec integration-tests",
"unit-tests": "jasmine JASMINE_CONFIG_PATH=spec/jasmine.json",
"cover": "nyc -x spec/ -x integration-tests/ npm test",
+ "report-coverage": "nyc report -r text-lcov > coverage.lcov && codecov",
"e2e-tests": "jasmine JASMINE_CONFIG_PATH=integration-tests/jasmine.json"
},
"contributors": [
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org