Skip to content

Commit a019edc

Browse files
authored
Merge pull request webpack#7328 from webpack/ci/travis-stages
Reduce the travis load with build stages
2 parents dff4777 + 105dd77 commit a019edc

File tree

3 files changed

+38
-8
lines changed

3 files changed

+38
-8
lines changed

.travis.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,41 @@ branches:
1010
cache:
1111
yarn: true
1212

13+
stages:
14+
- basic
15+
- advanced
16+
- versions
17+
1318
matrix:
1419
include:
1520
- os: linux
1621
node_js: "10"
17-
env: NO_WATCH_TESTS=1 JOB_PART=lint
22+
env: NO_WATCH_TESTS=1 JEST=--maxWorkers=2 JOB_PART=basic
23+
stage: basic
1824
- os: linux
1925
node_js: "10"
20-
env: NO_WATCH_TESTS=1 JEST=--maxWorkers=2 JOB_PART=integration
26+
env: NO_WATCH_TESTS=1 JOB_PART=lint
27+
stage: advanced
2128
- os: linux
22-
node_js: "8"
29+
node_js: "10"
2330
env: NO_WATCH_TESTS=1 JEST=--maxWorkers=2 JOB_PART=integration
31+
stage: advanced
2432
- os: linux
2533
node_js: "10"
2634
env: NO_WATCH_TESTS=1 JOB_PART=unit
27-
- os: linux
28-
node_js: "6"
29-
env: NO_WATCH_TESTS=1 JEST=--maxWorkers=2 JOB_PART=integration
35+
stage: advanced
3036
- os: osx
3137
node_js: "10"
3238
env: NO_WATCH_TESTS=1 JEST=--maxWorkers=2 JOB_PART=integration
33-
allow_failures:
34-
- os: osx
39+
stage: versions
40+
- os: linux
41+
node_js: "8"
42+
env: NO_WATCH_TESTS=1 JEST=--maxWorkers=2 JOB_PART=integration
43+
stage: versions
44+
- os: linux
45+
node_js: "6"
46+
env: NO_WATCH_TESTS=1 JEST=--maxWorkers=2 JOB_PART=integration
47+
stage: versions
3548
fast_finish: true
3649

3750
install:

codecov.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ coverage:
77
status:
88
project:
99
default: off
10+
basic:
11+
flags: basic
12+
target: auto
1013
integration:
1114
flags: integration
1215
target: auto
@@ -15,6 +18,10 @@ coverage:
1518
target: 0%
1619
patch:
1720
default: off
21+
integration:
22+
flags: integration
23+
target: 90%
24+
base: pr
1825
integration:
1926
flags: integration
2027
target: 90%
@@ -25,10 +32,18 @@ coverage:
2532
base: pr
2633
changes:
2734
default: off
35+
basic:
36+
flags: basic
37+
target: 0%
2838
integration:
2939
flags: integration
3040
target: 0%
3141
unit:
3242
flags: unit
3343
target: 0%
3444
comment: off
45+
flags:
46+
basic:
47+
joined: false
48+
unit:
49+
joined: false

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,10 @@
9999
"setup": "node ./setup/setup.js",
100100
"test": "node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest",
101101
"test:integration": "node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.test.js\"",
102+
"test:basic": "node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/{TestCasesNormal,StatsTestCases,ConfigTestCases}.test.js\"",
102103
"test:unit": "node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.unittest.js\"",
103104
"travis:integration": "yarn cover:init && yarn cover:integration --ci $JEST && yarn cover:report-min",
105+
"travis:basic": "yarn test:basic --ci $JEST",
104106
"travis:unit": "yarn cover:init && yarn cover:unit --ci",
105107
"travis:lint": "yarn lint",
106108
"travis:benchmark": "yarn benchmark --ci",

0 commit comments

Comments
 (0)