提交 77efb303 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

nyc + ava

上级 b6f94c45
......@@ -45,8 +45,8 @@ script:
- shellcheck bin/*.sh
- npm run lint
- npm run redist
- if [ "$TRAVIS_OS_NAME" == 'linux' ]; then WECHATY_LOG=silly npm run test:chrome; fi
- if [ "$TRAVIS_OS_NAME" == 'osx' ]; then WECHATY_LOG=verbose WECHATY_HEAD=chrome nyc ava --serial --fail-fast --verbose --ext js --timeout=3m "dist/{src,test}/**/*.spec.js"; fi
- if [ "$TRAVIS_OS_NAME" == 'linux' ]; then WECHATY_LOG=silly npm run test:chrome; fi
- if [ "$TRAVIS_OS_NAME" == 'osx' ]; then WECHATY_LOG=verbose npm run nycava; fi
notifications:
webhooks:
......@@ -62,7 +62,7 @@ notifications:
on_failure: change
after_success:
- npm run coverage
- if [ "$TRAVIS_OS_NAME" == 'osx' ]; then npm run coverage; fi
before_deploy:
- npm version
......
......@@ -22,6 +22,7 @@
"doctor": "ts-node bin/doctor",
"clean": "shx rm -fr dist/*",
"lint": "npm run eslint && npm run tslint",
"nycava": "WECHATY_HEAD=chrome nyc ava --serial --fail-fast --verbose --ext js --timeout=3m \"dist/{src,test}/**/*.spec.js\"",
"eslint": "eslint \"{bin,example,src,test}/**/*.js\" --ignore-pattern=\"test/fixture/**\"",
"tslint": "tslint \"{bin,example,src,test}/**/*.ts\" --exclude=\"test/fixture/**\" && tsc --noEmit",
"shlint": "bash -n bin/*.sh",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册