[web] Add JS coverage to codecov.

This commit is contained in:
Matthew Shao 2017-03-26 09:36:18 +08:00
parent 31a45ddaaa
commit de9ecb7c30
2 changed files with 7 additions and 3 deletions

View File

@ -52,8 +52,10 @@ matrix:
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
install: cd web && yarn
script: npm test
install:
- cd web && yarn
- yarn global add codecov
script: npm test && codecov
cache:
yarn: true
directories:

View File

@ -13,7 +13,9 @@
],
"unmockedModulePathPatterns": [
"react"
]
],
"coverageDirectory":"./coverage",
"collectCoverage": true
},
"dependencies": {
"bootstrap": "^3.3.7",