test: add codecov

pull/165/head
tangjinzhou 2018-04-23 13:18:11 +08:00
parent 0caf0dbeac
commit 4659dda09e
2 changed files with 169 additions and 165 deletions

View File

@ -3,6 +3,8 @@ sudo: required
node_js:
- 8.2.1
script:
- npm test
- npm run codecov
- bash ./scripts/deploy-to-gh-pages.sh
env:
matrix:

View File

@ -33,7 +33,8 @@
"lint": "eslint -c ./.eslintrc --fix --ext .jsx,.js,.vue ./components",
"lint:style": "stylelint \"./examples/**/*.less\" --fix --syntax less",
"commitmsg": "validate-commit-msg",
"cm": "git-cz"
"cm": "git-cz",
"codecov": "codecov"
},
"repository": {
"type": "git",
@ -76,15 +77,16 @@
"chai": "^4.1.2",
"chalk": "^2.3.2",
"cheerio": "^1.0.0-rc.2",
"codecov": "^3.0.0",
"colorful": "^2.1.0",
"commander": "^2.15.0",
"cross-env": "^5.1.4",
"commitizen": "^2.9.6",
"cross-env": "^5.1.4",
"css-loader": "^0.28.7",
"deep-assign": "^2.0.0",
"eslint": "^4.7.2",
"eslint-plugin-vue": "^3.13.0",
"eslint-plugin-html": "^3.2.2",
"eslint-plugin-vue": "^3.13.0",
"eslint-plugin-vue-libs": "^1.2.1",
"extract-text-webpack-plugin": "^3.0.2",
"fetch-jsonp": "^1.1.3",