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

code clean

上级 af627b5b
...@@ -12,7 +12,7 @@ Wechaty is a Bot Framework for Wechat **Personal** Account that helps you easy c ...@@ -12,7 +12,7 @@ Wechaty is a Bot Framework for Wechat **Personal** Account that helps you easy c
[![Join the chat at https://gitter.im/zixia/wechaty](https://badges.gitter.im/zixia/wechaty.svg)](https://gitter.im/zixia/wechaty?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Join the chat at https://gitter.im/zixia/wechaty](https://badges.gitter.im/zixia/wechaty.svg)](https://gitter.im/zixia/wechaty?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![node](https://img.shields.io/node/v/wechaty.svg?maxAge=2592000)](https://nodejs.org/) [![node](https://img.shields.io/node/v/wechaty.svg?maxAge=2592000)](https://nodejs.org/)
[![Repo Size](https://reposs.herokuapp.com/?path=wechaty/wechaty)]() [![Repo Size](https://reposs.herokuapp.com/?path=wechaty/wechaty)](https://github.com/wechaty/wechaty)
## Wechaty had rewritten to Typescript. ## Wechaty had rewritten to Typescript.
......
...@@ -6,7 +6,6 @@ environment: ...@@ -6,7 +6,6 @@ environment:
- nodejs_version: "6" - nodejs_version: "6"
- nodejs_version: "7" - nodejs_version: "7"
# Install scripts. (runs after repo cloning) # Install scripts. (runs after repo cloning)
install: install:
# Get the latest stable version of Node.js or io.js # Get the latest stable version of Node.js or io.js
...@@ -16,10 +15,8 @@ install: ...@@ -16,10 +15,8 @@ install:
# Post-install test scripts. # Post-install test scripts.
test_script: test_script:
# Output useful info for debugging.
- node --version - node --version
- npm --version - npm --version
# run tests
- npm test - npm test
# Don't actually build. # Don't actually build.
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
"test:phantomjs.bak": "cross-env LC_ALL=C WECHATY_LOG=info WECHATY_HEAD=phantomjs ava --timeout=10m \"dist/{src,test}/**/*.spec.js\"", "test:phantomjs.bak": "cross-env LC_ALL=C WECHATY_LOG=info WECHATY_HEAD=phantomjs ava --timeout=10m \"dist/{src,test}/**/*.spec.js\"",
"test:chrome": "cross-env LC_ALL=C WECHATY_LOG=verbose WECHATY_HEAD=chrome ava --concurrency 0 --ext js --timeout=10m \"dist/{src,test}/**/*.spec.js\"", "test:chrome": "cross-env LC_ALL=C WECHATY_LOG=verbose WECHATY_HEAD=chrome ava --concurrency 0 --ext js --timeout=10m \"dist/{src,test}/**/*.spec.js\"",
"testdev": "cross-env LC_ALL=C WECHATY_LOG=silly ava --ext ts --serial --verbose --fail-fast --timeout=3m", "testdev": "cross-env LC_ALL=C WECHATY_LOG=silly ava --ext ts --serial --verbose --fail-fast --timeout=3m",
"testdist": "WECHATY_LOG=SILLY WECHATY_HEAD=chrome ava --ext ts --verbose --fail-fast --timeout=2m", "testdist": "cross-env WECHATY_LOG=SILLY WECHATY_HEAD=chrome ava --ext ts --verbose --fail-fast --timeout=2m",
"ava": "cross-env LC_ALL=C WECHATY_LOG=verbose ts-node node_modules/.bin/ava \"{src,test}/**/*.spec.js\"", "ava": "cross-env LC_ALL=C WECHATY_LOG=verbose ts-node node_modules/.bin/ava \"{src,test}/**/*.spec.js\"",
"start": "ts-node bin/client", "start": "ts-node bin/client",
"dev": "ts-node dev.ts", "dev": "ts-node dev.ts",
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
"ava": "^0.16.0", "ava": "^0.16.0",
"body-parser": "^1.15.2", "body-parser": "^1.15.2",
"brolog": "^0.3.10", "brolog": "^0.3.10",
"chromedriver": "^2.23.1", "chromedriver": "^2.24.1",
"express": "^4.13.4", "express": "^4.13.4",
"is-ci": "^1.0.9", "is-ci": "^1.0.9",
"phantomjs-prebuilt": "^2.1.13", "phantomjs-prebuilt": "^2.1.13",
......
...@@ -98,7 +98,7 @@ function isWechatyDocker() { ...@@ -98,7 +98,7 @@ function isWechatyDocker() {
} }
const cgroup = '/proc/1/cgroup' const cgroup = '/proc/1/cgroup'
try { fs.statSync(cgroup) /* .isFile() */ } try { fs.statSync(cgroup).isFile() }
catch (e) { return false } catch (e) { return false }
const line = execSync(`sort -n ${cgroup} | head -1`) const line = execSync(`sort -n ${cgroup} | head -1`)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册