Skip to content

Commit b9dc7dc

Browse files
committed
fix flags in appveyor and travis
remove cover:init
1 parent 87fc33e commit b9dc7dc

4 files changed

Lines changed: 10 additions & 12 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ matrix:
2525
stage: basic
2626
- os: linux
2727
node_js: "10"
28-
env: NO_WATCH_TESTS=1 JEST="--maxWorkers=2 --cacheDirectory .jest-cache" JOB_PART=lint-unit
28+
env: NO_WATCH_TESTS=1 JEST="--maxWorkers=2 --cacheDirectory .jest-cache" JOB_PART=lintunit
2929
stage: advanced
3030
- os: linux
3131
node_js: "10"

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ test_script:
3131
- cmd: yarn appveyor:integration
3232
- cmd: yarn istanbul report --report lcovonly
3333
- cmd: yarn unlink webpack
34-
- cmd: yarn global add codecov && codecov -F %job_part% --disable=gcov
34+
- cmd: yarn global add codecov && codecov -F integration --disable=gcov
3535
- cmd: del /F /Q .jest-cache\\haste-map* .jest-cache\\perf-cache* 2> null || Ver > null

azure-pipelines.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ jobs:
124124
- script: |
125125
set -e
126126
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
127-
yarn cover:init
128127
yarn cover:integration --ci --maxWorkers=2 --reporters=jest-junit
129128
displayName: "Run tests with coverage"
130129
- task: PublishTestResults@2
@@ -175,7 +174,6 @@ jobs:
175174
- script: |
176175
set -e
177176
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
178-
yarn cover:init
179177
yarn cover:integration --ci --reporters=jest-junit
180178
displayName: "Run tests with coverage"
181179
- task: PublishTestResults@2
@@ -220,7 +218,7 @@ jobs:
220218
yarn link webpack --frozen-lockfile
221219
displayName: "Install dependencies"
222220
- script: |
223-
yarn cover:init && yarn cover:integration --ci --maxWorkers=2 --reporters=jest-junit
221+
yarn cover:integration --ci --maxWorkers=2 --reporters=jest-junit
224222
displayName: "Run tests with coverage"
225223
- task: PublishTestResults@2
226224
inputs:

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@
110110
"test:integration": "node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.test.js\"",
111111
"test:basic": "node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/te{st/TestCasesNormal,st/StatsTestCases,st/ConfigTestCases}.test.js\"",
112112
"test:unit": "node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.unittest.js\"",
113-
"travis:integration": "yarn cover:init && yarn cover:integration --ci $JEST",
114-
"travis:basic": "yarn test:basic --ci $JEST",
115-
"travis:lint-unit": "yarn lint && yarn cover:init && yarn cover:unit --ci $JEST",
113+
"travis:integration": "yarn cover:integration --ci $JEST",
114+
"travis:basic": "yarn cover:basic --ci $JEST",
115+
"travis:lintunit": "yarn lint && yarn cover:unit --ci $JEST",
116116
"travis:benchmark": "yarn benchmark --ci",
117-
"appveyor:integration": "yarn cover:init && yarn cover:integration --ci %JEST%",
118-
"appveyor:unit": "yarn cover:init && yarn cover:unit --ci %JEST%",
117+
"appveyor:integration": "yarn cover:integration --ci %JEST%",
118+
"appveyor:unit": "yarn cover:unit --ci %JEST%",
119119
"appveyor:benchmark": "yarn benchmark --ci",
120120
"build:examples": "cd examples && node buildAll.js",
121121
"pretest": "yarn lint",
@@ -129,9 +129,9 @@
129129
"pretty": "prettier --loglevel warn --write \"*.{ts,js,json,yml,yaml}\" \"{setup,lib,bin,hot,buildin,benchmark,tooling,schemas}/**/*.{js,json}\" \"test/*.js\" \"test/{configCases,watchCases,statsCases,hotCases}/**/webpack.config.js\" \"examples/**/webpack.config.js\"",
130130
"jest-lint": "node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.lint.js\" --no-verbose",
131131
"benchmark": "node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.benchmark.js\" --runInBand",
132-
"cover": "yarn cover:init && yarn cover:all && yarn cover:report",
133-
"cover:init": "rimraf coverage",
132+
"cover": "yarn cover:all && yarn cover:report",
134133
"cover:all": "node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --coverage",
134+
"cover:basic": "node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/te{st/TestCasesNormal,st/StatsTestCases,st/ConfigTestCases}.test.js\" --coverage",
135135
"cover:integration": "node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.test.js\" --coverage",
136136
"cover:unit": "node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.unittest.js\" --coverage",
137137
"cover:report": "istanbul report"

0 commit comments

Comments
 (0)