Skip to content

Commit

Permalink
fix: ci config (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyuhen authored Mar 25, 2019
1 parent 2b1cd36 commit 6553b20
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 0 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ node_js:
- 8
- 10

before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.6.0
- export PATH="$HOME/.yarn/bin:$PATH"

script:
- yarn run build
- yarn run lint
Expand Down
3 changes: 2 additions & 1 deletion CONTRIBUTING-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
6. 确保能通过 lint 校验。

```sh
npm run lint:fix
npm run format
npm run lint
```

7. 请确保能通过所有测试用例。
Expand Down
3 changes: 2 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ _Before_ submitting a pull request, please make sure the following is done…
6) Ensure the linting is good via `yarn run lint:fix`.
```sh
npm run lint:fix
npm run format
npm run lint
```
7) Ensure the testing is good via `yarn run test`.
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"zhihu-video-player"
],
"scripts": {
"format": "prettier --write \"packages/**/*.{js,json,md}\" \"*.{js,json,md}\"",
"lint": "eslint --fix \"packages/**/*.js\" \"*.js\"",
"format": "prettier \"packages/**/*.{js,json,md}\" \"*.{js,json,md}\"",
"lint": "eslint \"packages/**/*.js\" \"*.js\"",
"test": "jest",
"test:coverage": "jest --coverage",
"test:watch": "jest --watch --notify",
Expand Down

0 comments on commit 6553b20

Please sign in to comment.