Browse Source

setup coverage

dev
Evan You 9 years ago
parent
commit
8c6db60b58
  1. 5
      build/ci.sh
  2. 5
      circle.yml
  3. 1
      package.json

5
build/ci.sh

@ -0,0 +1,5 @@
set -e
npm run ci
if [ -z "$CI_PULL_REQUEST" ] then
cat ./coverage/lcov.info | ./node_modules/.bin/codecov
fi

5
circle.yml

@ -4,7 +4,4 @@ machine:
test:
override:
- npm run lint
- npm run flow
- npm run test:cover
- npm run test:ssr
- bash build/ci.sh

1
package.json

@ -46,6 +46,7 @@
"babel-preset-es2015-rollup-vue": "1.1.x",
"babel-preset-flow-vue": "1.0.x",
"chromedriver": "2.21.x",
"codecov.io": "0.1.x",
"cross-spawn": "2.2.x",
"entities": "1.1.x",
"eslint": "2.9.x",

Loading…
Cancel
Save