Skip to content

Commit 19b052a

Browse files
committed
Upgrade yarn lock file and speed up CI test script.
1 parent fab40fe commit 19b052a

File tree

3 files changed

+192
-174
lines changed

3 files changed

+192
-174
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,7 @@ cache:
77
yarn: true
88
directories:
99
- node_modules
10+
script:
11+
- npm run test:ci
1012
after_success:
1113
- npm run coveralls

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,15 @@
1818
"main": "lib/index.js",
1919
"scripts": {
2020
"build": "rimraf lib && babel src --out-dir lib --copy-files",
21-
"prepublish": "npm run lint && npm run flow && npm run test && npm run build",
2221
"coveralls": "cat ./reports/lcov.info | coveralls",
22+
"create": "node ./scripts/create-rule",
2323
"flow": "if [ ! -e ./.flowconfig ]; then echo \"Could not find .flowconfig\"; else flow; test $? -eq 0 -o $? -eq 2; fi",
24-
"lint": "eslint --config .eslintrc src __tests__ __mocks__ scripts",
2524
"lint:fix": "npm run lint -- --fix",
25+
"lint": "eslint --config .eslintrc src __tests__ __mocks__ scripts",
26+
"prepublish": "npm run lint && npm run flow && npm run test && npm run build",
2627
"pretest": "npm run lint:fix && npm run flow",
28+
"test:ci": "npm test -- --ci --runInBand",
2729
"test": "jest --coverage __tests__/**/*",
28-
"create": "node ./scripts/create-rule"
2930
},
3031
"devDependencies": {
3132
"babel-cli": "^6.14.0",
@@ -42,7 +43,7 @@
4243
"eslint-plugin-flowtype": "^2.32.1",
4344
"eslint-plugin-import": "^2.2.0",
4445
"expect": "^1.20.2",
45-
"flow-bin": "^0.45.0",
46+
"flow-bin": "^0.46.0",
4647
"jest": "^20.0.0",
4748
"jscodeshift": "^0.3.30",
4849
"minimist": "^1.2.0",

0 commit comments

Comments
 (0)