add codecov reports

This commit is contained in:
Alexander Zobnin
2017-10-30 20:44:35 +03:00
parent e80a814880
commit dde5aa6a61
3 changed files with 7 additions and 3 deletions

View File

@@ -4,4 +4,4 @@ machine:
test: test:
override: override:
- npm run build - npm run codecov

View File

@@ -7,5 +7,7 @@ module.exports = {
], ],
"moduleNameMapper": { "moduleNameMapper": {
"^[./a-zA-Z0-9$_-]+\.css\!?$": "<rootDir>/dist/test/test-setup/cssStub.js", "^[./a-zA-Z0-9$_-]+\.css\!?$": "<rootDir>/dist/test/test-setup/cssStub.js",
} },
"coverageDirectory": "<rootDir>/tmp/coverage/",
"collectCoverage": false
}; };

View File

@@ -6,7 +6,8 @@
"scripts": { "scripts": {
"test": "./node_modules/.bin/grunt buildTest && jest", "test": "./node_modules/.bin/grunt buildTest && jest",
"build": "./node_modules/.bin/grunt && jest", "build": "./node_modules/.bin/grunt && jest",
"watch": "./node_modules/.bin/grunt watch" "watch": "./node_modules/.bin/grunt watch",
"codecov": "jest --coverage && codecov"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@@ -23,6 +24,7 @@
"babel-plugin-transform-es2015-modules-systemjs": "^6.5.0", "babel-plugin-transform-es2015-modules-systemjs": "^6.5.0",
"babel-preset-es2015": "^6.5.0", "babel-preset-es2015": "^6.5.0",
"benchmark": "^2.1.4", "benchmark": "^2.1.4",
"codecov": "^3.0.0",
"grunt": "~0.4.5", "grunt": "~0.4.5",
"grunt-babel": "~6.0.0", "grunt-babel": "~6.0.0",
"grunt-benchmark": "^1.0.0", "grunt-benchmark": "^1.0.0",