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

chore(CI): Add reporting to codecov

parent a2fb20f0
...@@ -12,3 +12,5 @@ before_script: ...@@ -12,3 +12,5 @@ before_script:
- npm run build - npm run build
script: script:
- npm run test - npm run test
after_success:
- npm run report-coverage
...@@ -45,8 +45,10 @@ module.exports = function (config) { ...@@ -45,8 +45,10 @@ module.exports = function (config) {
autoWatch: false, autoWatch: false,
coverageReporter: { coverageReporter: {
type: 'html', // specify a common output directory
dir: 'tests/coverage' dir: 'tests/coverage',
type: 'lcov',
subdir: '.'
}, },
......
...@@ -14,7 +14,8 @@ ...@@ -14,7 +14,8 @@
"scripts": { "scripts": {
"commit": "git-cz", "commit": "git-cz",
"build": "grunt", "build": "grunt",
"test": "grunt test" "test": "grunt test",
"report-coverage": "cat ./tests/coverage/lcov.info | codecov"
}, },
"peerDependencies": { "peerDependencies": {
"angular": "^1.2.x" "angular": "^1.2.x"
...@@ -25,6 +26,7 @@ ...@@ -25,6 +26,7 @@
"chai": "^3.4.1", "chai": "^3.4.1",
"chai-as-promised": "^5.1.0", "chai-as-promised": "^5.1.0",
"chai-things": "^0.2.0", "chai-things": "^0.2.0",
"codecov.io": "^0.1.6",
"commitizen": "^2.4.6", "commitizen": "^2.4.6",
"cz-conventional-changelog": "^1.1.5", "cz-conventional-changelog": "^1.1.5",
"grunt": "~0.4.2", "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