Commit 65782ea4 authored by Valentin Hervieu's avatar Valentin Hervieu

chore(CI): Add reporting to codecov

parent a2fb20f0
......@@ -12,3 +12,5 @@ before_script:
- npm run build
script:
- npm run test
after_success:
- npm run report-coverage
......@@ -45,8 +45,10 @@ module.exports = function (config) {
autoWatch: false,
coverageReporter: {
type: 'html',
dir: 'tests/coverage'
// specify a common output directory
dir: 'tests/coverage',
type: 'lcov',
subdir: '.'
},
......
......@@ -14,7 +14,8 @@
"scripts": {
"commit": "git-cz",
"build": "grunt",
"test": "grunt test"
"test": "grunt test",
"report-coverage": "cat ./tests/coverage/lcov.info | codecov"
},
"peerDependencies": {
"angular": "^1.2.x"
......@@ -25,6 +26,7 @@
"chai": "^3.4.1",
"chai-as-promised": "^5.1.0",
"chai-things": "^0.2.0",
"codecov.io": "^0.1.6",
"commitizen": "^2.4.6",
"cz-conventional-changelog": "^1.1.5",
"grunt": "~0.4.2",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment