Skip to content

Commit

Permalink
Add coverage report using codecov. Fix vuejs#869
Browse files Browse the repository at this point in the history
  • Loading branch information
octref committed Aug 14, 2018
1 parent 562d1ff commit 46180b7
Show file tree
Hide file tree
Showing 5 changed files with 1,333 additions and 22 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ docs/.vuepress/dist

*.zip
*.vsix

.nyc_output
coverage.lcov
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ install:
script:
- yarn test

after_success:
- cd server && yarn coverage && cd ..

cache: yarn
3 changes: 3 additions & 0 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,17 @@
"@types/lodash": "^4.14.91",
"@types/mocha": "^2.2.44",
"@types/node": "^8.5.1",
"codecov": "^3.0.4",
"glob": "^7.1.2",
"mocha": "^4.0.1",
"nyc": "^12.0.2",
"source-map-support": "^0.5.0"
},
"scripts": {
"compile": "tsc -p .",
"watch": "tsc --watch",
"test": "mocha",
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
"newVersion": "yarn version --new-version patch -m \"vls %s\"",
"preversion": "npm run compile && npm test",
"prepublishOnly": "npm run compile"
Expand Down
Loading

0 comments on commit 46180b7

Please sign in to comment.