Skip to content

Commit

Permalink
Add Codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
taion committed Jun 10, 2017
1 parent 9b9baed commit d2ea9e7
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 65 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start

after_script:
- node_modules/.bin/codecov

branches:
only:
- master
1 change: 1 addition & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
comment: off
7 changes: 1 addition & 6 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
const webpack = require('webpack');

const coverageReporters = ['coverage'];
if (process.env.CONTINUOUS_INTEGRATION === 'true') {
coverageReporters.push('coveralls');
}

module.exports = (config) => {
const { env } = process;

Expand Down Expand Up @@ -36,7 +31,7 @@ module.exports = (config) => {
noInfo: true,
},

reporters: ['mocha', ...coverageReporters],
reporters: ['mocha', 'coverage'],

mochaReporter: {
output: 'autowatch',
Expand Down
92 changes: 34 additions & 58 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"babel-preset-react": "^6.24.1",
"babel-preset-stage-1": "^6.24.1",
"chai": "^3.5.0",
"codecov": "^2.2.0",
"component-metadata-loader": "^3.0.1",
"cross-env": "^5.0.1",
"css-loader": "^0.28.4",
Expand All @@ -64,7 +65,6 @@
"karma": "^1.7.0",
"karma-chrome-launcher": "^2.1.1",
"karma-coverage": "^1.1.1",
"karma-coveralls": "^1.1.2",
"karma-mocha": "^1.3.0",
"karma-mocha-reporter": "^2.2.3",
"karma-sinon-chai": "^1.3.1",
Expand Down

0 comments on commit d2ea9e7

Please sign in to comment.