|
1 | 1 | gcp_credentials: ENCRYPTED[987a78af29b91ce8489594c9ab3fec21845bbe5ba68294b8f6def3cf0d380830f06687a89ea69c87344c5ade369700fe] |
2 | 2 |
|
| 3 | +web_shard_template: &WEB_SHARD_TEMPLATE |
| 4 | + only_if: "changesInclude('.cirrus.yml', 'lib/web_ui/**', 'web_sdk/**') || $CIRRUS_PR == ''" |
| 5 | + environment: |
| 6 | + # As of October 2019, the Web shards needed more than 6G of RAM. |
| 7 | + CPU: 2 |
| 8 | + MEMORY: 8G |
| 9 | + compile_host_script: | |
| 10 | + cd $ENGINE_PATH/src |
| 11 | + ./flutter/tools/gn --unoptimized --full-dart-sdk |
| 12 | + ninja -C out/host_debug_unopt |
| 13 | + fetch_framework_script: | |
| 14 | + mkdir -p $FRAMEWORK_PATH |
| 15 | + cd $FRAMEWORK_PATH |
| 16 | + git clone https://github.com/flutter/flutter.git |
| 17 | + cd flutter |
| 18 | + bin/flutter update-packages --local-engine=host_debug_unopt |
| 19 | + script: |
| 20 | + - dart --enable-asserts $FRAMEWORK_PATH/flutter/dev/bots/test.dart --local-engine=host_debug_unopt |
| 21 | + |
3 | 22 | # LINUX |
4 | 23 | task: |
5 | 24 | gke_container: |
@@ -83,156 +102,28 @@ task: |
83 | 102 |
|
84 | 103 | # PLEASE KEEP THESE WEB TEST SHARDS IN SYNC WITH THEIR COUNTERPARTS IN flutter/flutter's CIRRUS CONFIG. |
85 | 104 | - name: web_tests-0-linux |
86 | | - only_if: "changesInclude('.cirrus.yml', 'lib/web_ui/**', 'web_sdk/**') || $CIRRUS_PR == ''" |
87 | | - environment: |
88 | | - # As of October 2019, the Web shards needed more than 6G of RAM. |
89 | | - CPU: 2 |
90 | | - MEMORY: 8G |
91 | | - compile_host_script: | |
92 | | - cd $ENGINE_PATH/src |
93 | | - ./flutter/tools/gn --unoptimized --full-dart-sdk |
94 | | - ninja -C out/host_debug_unopt |
95 | | - fetch_framework_script: | |
96 | | - mkdir -p $FRAMEWORK_PATH |
97 | | - cd $FRAMEWORK_PATH |
98 | | - git clone https://github.com/flutter/flutter.git |
99 | | - cd flutter |
100 | | - bin/flutter update-packages --local-engine=host_debug_unopt |
101 | | - script: |
102 | | - - dart --enable-asserts $FRAMEWORK_PATH/flutter/dev/bots/test.dart --local-engine=host_debug_unopt |
| 105 | + << : *WEB_SHARD_TEMPLATE |
103 | 106 |
|
104 | 107 | - name: web_tests-1-linux |
105 | | - only_if: "changesInclude('.cirrus.yml', 'lib/web_ui/**', 'web_sdk/**') || $CIRRUS_PR == ''" |
106 | | - environment: |
107 | | - # As of October 2019, the Web shards needed more than 6G of RAM. |
108 | | - CPU: 2 |
109 | | - MEMORY: 8G |
110 | | - compile_host_script: | |
111 | | - cd $ENGINE_PATH/src |
112 | | - ./flutter/tools/gn --unoptimized --full-dart-sdk |
113 | | - ninja -C out/host_debug_unopt |
114 | | - fetch_framework_script: | |
115 | | - mkdir -p $FRAMEWORK_PATH |
116 | | - cd $FRAMEWORK_PATH |
117 | | - git clone https://github.com/flutter/flutter.git |
118 | | - cd flutter |
119 | | - bin/flutter update-packages --local-engine=host_debug_unopt |
120 | | - script: |
121 | | - - dart --enable-asserts $FRAMEWORK_PATH/flutter/dev/bots/test.dart --local-engine=host_debug_unopt |
| 108 | + << : *WEB_SHARD_TEMPLATE |
122 | 109 |
|
123 | 110 | - name: web_tests-2-linux |
124 | | - only_if: "changesInclude('.cirrus.yml', 'lib/web_ui/**', 'web_sdk/**') || $CIRRUS_PR == ''" |
125 | | - environment: |
126 | | - # As of October 2019, the Web shards needed more than 6G of RAM. |
127 | | - CPU: 2 |
128 | | - MEMORY: 8G |
129 | | - compile_host_script: | |
130 | | - cd $ENGINE_PATH/src |
131 | | - ./flutter/tools/gn --unoptimized --full-dart-sdk |
132 | | - ninja -C out/host_debug_unopt |
133 | | - fetch_framework_script: | |
134 | | - mkdir -p $FRAMEWORK_PATH |
135 | | - cd $FRAMEWORK_PATH |
136 | | - git clone https://github.com/flutter/flutter.git |
137 | | - cd flutter |
138 | | - bin/flutter update-packages --local-engine=host_debug_unopt |
139 | | - script: |
140 | | - - dart --enable-asserts $FRAMEWORK_PATH/flutter/dev/bots/test.dart --local-engine=host_debug_unopt |
| 111 | + << : *WEB_SHARD_TEMPLATE |
141 | 112 |
|
142 | 113 | - name: web_tests-3-linux |
143 | | - only_if: "changesInclude('.cirrus.yml', 'lib/web_ui/**', 'web_sdk/**') || $CIRRUS_PR == ''" |
144 | | - environment: |
145 | | - # As of October 2019, the Web shards needed more than 6G of RAM. |
146 | | - CPU: 2 |
147 | | - MEMORY: 8G |
148 | | - compile_host_script: | |
149 | | - cd $ENGINE_PATH/src |
150 | | - ./flutter/tools/gn --unoptimized --full-dart-sdk |
151 | | - ninja -C out/host_debug_unopt |
152 | | - fetch_framework_script: | |
153 | | - mkdir -p $FRAMEWORK_PATH |
154 | | - cd $FRAMEWORK_PATH |
155 | | - git clone https://github.com/flutter/flutter.git |
156 | | - cd flutter |
157 | | - bin/flutter update-packages --local-engine=host_debug_unopt |
158 | | - script: |
159 | | - - dart --enable-asserts $FRAMEWORK_PATH/flutter/dev/bots/test.dart --local-engine=host_debug_unopt |
| 114 | + << : *WEB_SHARD_TEMPLATE |
160 | 115 |
|
161 | 116 | - name: web_tests-4-linux |
162 | | - only_if: "changesInclude('.cirrus.yml', 'lib/web_ui/**', 'web_sdk/**') || $CIRRUS_PR == ''" |
163 | | - environment: |
164 | | - # As of October 2019, the Web shards needed more than 6G of RAM. |
165 | | - CPU: 2 |
166 | | - MEMORY: 8G |
167 | | - compile_host_script: | |
168 | | - cd $ENGINE_PATH/src |
169 | | - ./flutter/tools/gn --unoptimized --full-dart-sdk |
170 | | - ninja -C out/host_debug_unopt |
171 | | - fetch_framework_script: | |
172 | | - mkdir -p $FRAMEWORK_PATH |
173 | | - cd $FRAMEWORK_PATH |
174 | | - git clone https://github.com/flutter/flutter.git |
175 | | - cd flutter |
176 | | - bin/flutter update-packages --local-engine=host_debug_unopt |
177 | | - script: |
178 | | - - dart --enable-asserts $FRAMEWORK_PATH/flutter/dev/bots/test.dart --local-engine=host_debug_unopt |
| 117 | + << : *WEB_SHARD_TEMPLATE |
179 | 118 |
|
180 | 119 | - name: web_tests-5-linux |
181 | | - only_if: "changesInclude('.cirrus.yml', 'lib/web_ui/**', 'web_sdk/**') || $CIRRUS_PR == ''" |
182 | | - environment: |
183 | | - # As of October 2019, the Web shards needed more than 6G of RAM. |
184 | | - CPU: 2 |
185 | | - MEMORY: 8G |
186 | | - compile_host_script: | |
187 | | - cd $ENGINE_PATH/src |
188 | | - ./flutter/tools/gn --unoptimized --full-dart-sdk |
189 | | - ninja -C out/host_debug_unopt |
190 | | - fetch_framework_script: | |
191 | | - mkdir -p $FRAMEWORK_PATH |
192 | | - cd $FRAMEWORK_PATH |
193 | | - git clone https://github.com/flutter/flutter.git |
194 | | - cd flutter |
195 | | - bin/flutter update-packages --local-engine=host_debug_unopt |
196 | | - script: |
197 | | - - dart --enable-asserts $FRAMEWORK_PATH/flutter/dev/bots/test.dart --local-engine=host_debug_unopt |
| 120 | + << : *WEB_SHARD_TEMPLATE |
198 | 121 |
|
199 | 122 | - name: web_tests-6-linux |
200 | | - only_if: "changesInclude('.cirrus.yml', 'lib/web_ui/**', 'web_sdk/**') || $CIRRUS_PR == ''" |
201 | | - environment: |
202 | | - # As of October 2019, the Web shards needed more than 6G of RAM. |
203 | | - CPU: 2 |
204 | | - MEMORY: 8G |
205 | | - compile_host_script: | |
206 | | - cd $ENGINE_PATH/src |
207 | | - ./flutter/tools/gn --unoptimized --full-dart-sdk |
208 | | - ninja -C out/host_debug_unopt |
209 | | - fetch_framework_script: | |
210 | | - mkdir -p $FRAMEWORK_PATH |
211 | | - cd $FRAMEWORK_PATH |
212 | | - git clone https://github.com/flutter/flutter.git |
213 | | - cd flutter |
214 | | - bin/flutter update-packages --local-engine=host_debug_unopt |
215 | | - script: |
216 | | - - dart --enable-asserts $FRAMEWORK_PATH/flutter/dev/bots/test.dart --local-engine=host_debug_unopt |
| 123 | + << : *WEB_SHARD_TEMPLATE |
217 | 124 |
|
218 | 125 | - name: web_tests-7_last-linux # last Web shard must end with _last |
219 | | - only_if: "changesInclude('.cirrus.yml', 'lib/web_ui/**', 'web_sdk/**') || $CIRRUS_PR == ''" |
220 | | - environment: |
221 | | - # As of October 2019, the Web shards needed more than 6G of RAM. |
222 | | - CPU: 2 |
223 | | - MEMORY: 8G |
224 | | - compile_host_script: | |
225 | | - cd $ENGINE_PATH/src |
226 | | - ./flutter/tools/gn --unoptimized --full-dart-sdk |
227 | | - ninja -C out/host_debug_unopt |
228 | | - fetch_framework_script: | |
229 | | - mkdir -p $FRAMEWORK_PATH |
230 | | - cd $FRAMEWORK_PATH |
231 | | - git clone https://github.com/flutter/flutter.git |
232 | | - cd flutter |
233 | | - bin/flutter update-packages --local-engine=host_debug_unopt |
234 | | - script: |
235 | | - - dart --enable-asserts $FRAMEWORK_PATH/flutter/dev/bots/test.dart --local-engine=host_debug_unopt |
| 126 | + << : *WEB_SHARD_TEMPLATE |
236 | 127 |
|
237 | 128 | - name: build_and_test_web_linux_firefox |
238 | 129 | compile_host_script: | |
|
0 commit comments