blob: 69d6f3a088d9d50055d4555c8aed6fbddd248757 [file] [log] [blame]
Fedor Korotkov73334592018-05-01 18:11:21 -04001container:
Greg Spencer77645df2018-08-06 17:33:31 -07002 image: gcr.io/flutter-cirrus/build-flutter-image:latest
Fedor Korotkov73334592018-05-01 18:11:21 -04003
4task:
Greg Spencerada1d292018-11-14 12:47:39 -08005 use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true' && $CIRRUS_PR == ''
Fedor Korotkov73334592018-05-01 18:11:21 -04006 env:
Greg Spencer77645df2018-08-06 17:33:31 -07007 # Name the SDK directory to include a space so that we constantly
8 # test path names with spaces in them.
Fedor Korotkov73334592018-05-01 18:11:21 -04009 CIRRUS_WORKING_DIR: "/tmp/flutter sdk"
10 PATH: "$CIRRUS_WORKING_DIR/bin:$CIRRUS_WORKING_DIR/bin/cache/dart-sdk/bin:$PATH"
Danny Tuppenyc19142d2018-12-17 17:29:09 +000011 ANDROID_SDK_ROOT: "/opt/android_sdk"
Greg Spencer77645df2018-08-06 17:33:31 -070012 git_fetch_script:
Dan Field20e0f132019-03-06 13:13:45 -080013 - git clean -xfd
Greg Spencer77645df2018-08-06 17:33:31 -070014 - git fetch origin
15 - git fetch origin master # To set FETCH_HEAD for "git merge-base" to work
Danny Tuppeny07e93b32018-08-02 20:45:07 +010016 pub_cache:
17 folder: $HOME/.pub-cache
18 fingerprint_script: echo $OS; grep -r --include=pubspec.yaml 'PUBSPEC CHECKSUM' "$CIRRUS_WORKING_DIR"
19 flutter_pkg_cache:
20 folder: bin/cache/pkg
21 fingerprint_script: echo $OS; cat bin/internal/engine.version
22 artifacts_cache:
23 folder: bin/cache/artifacts
24 fingerprint_script: echo $OS; cat bin/internal/engine.version
Greg Spencer77645df2018-08-06 17:33:31 -070025 setup_script: ./dev/bots/cirrus_setup.sh
Fedor Korotkov73334592018-05-01 18:11:21 -040026 matrix:
Dan Field1d0aa022019-06-18 16:08:28 -070027 - name: docs
28 env:
29 SHARD: docs
30 # For uploading master docs to Firebase master branch staging site
31 FIREBASE_MASTER_TOKEN: ENCRYPTED[eb768d18798fdc5abfe09b224e1724c4d82831d715ccf90df2c79d618c317216cbd99493278361f6fe7948b409b603f0]
32 # For uploading beta docs to Firebase public live site
33 FIREBASE_PUBLIC_TOKEN: ENCRYPTED[37e8b82f167864cae9a3f4d2cf3f37dea331d9375c295327c45de524f6c588fa6f6d63e5784f10f6d43ce29689f36c92]
34 docs_script: ./dev/bots/docs.sh
Greg Spencer77645df2018-08-06 17:33:31 -070035 - name: deploy_gallery
Greg Spencer77645df2018-08-06 17:33:31 -070036 depends_on:
37 - docs
38 - analyze
Dan Field72926bd2018-11-29 09:32:11 -080039 - build_tests-linux
Greg Spencer77645df2018-08-06 17:33:31 -070040 env:
41 SHARD: deploy_gallery
42 GOOGLE_DEVELOPER_SERVICE_ACCOUNT_ACTOR_FASTLANE: ENCRYPTED[d9ac1462c3c556fc2f8165c9d5566a16497d8ebc38a50357f7f3abf136b7f83e1d1d76dde36fee356cb0f9ebf7a89346]
xstere8c14e62019-04-10 15:49:11 -070043 ANDROID_GALLERY_UPLOAD_KEY: ENCRYPTED[0f2aca35f05b26add5d9edea2a7449341269a2b7e22d5c667f876996e2e8bc44ff1369431ebf73b7c5581fd95d0e5902]
xsterb04d38b2019-05-01 16:43:23 -070044 test_script:
45 # Unsetting CIRRUS_CHANGE_MESSAGE and CIRRUS_COMMIT_MESSAGE as they
46 # might include non-ASCII characters which makes Gradle crash.
47 # See: https://github.com/flutter/flutter/issues/24935
48 # This is a temporary workaround until we figure how to properly configure
49 # a UTF8 locale on Cirrus (or until the Gradle bug is fixed).
50 # TODO(amirh): Set the locale to UTF8.
51 - echo "$CIRRUS_CHANGE_MESSAGE" > /tmp/cirrus_change_message.txt
52 - echo "$CIRRUS_COMMIT_MESSAGE" > /tmp/cirrus_commit_message.txt
53 - export CIRRUS_CHANGE_MESSAGE=""
54 - export CIRRUS_COMMIT_MESSAGE=""
55 - ./dev/bots/deploy_gallery.sh
56 - export CIRRUS_CHANGE_MESSAGE=`cat /tmp/cirrus_change_message.txt`
57 - export CIRRUS_COMMIT_MESSAGE=`cat /tmp/cirrus_commit_message.txt`
Fedor Korotkov73334592018-05-01 18:11:21 -040058 - name: analyze
Greg Spencer1a414992018-07-25 15:19:57 -070059 test_script:
Ian Hickson58939b72019-02-12 12:29:36 -080060 - dart --enable-asserts ./dev/bots/analyze.dart
Dan Fielda0fc3f32019-06-20 14:35:33 -070061 - name: tests_widgets-linux
Fedor Korotkovd0125d92018-05-03 14:24:02 -040062 env:
Dan Field20e0f132019-03-06 13:13:45 -080063 GCLOUD_SERVICE_ACCOUNT_KEY: ENCRYPTED[f12abe60f5045d619ef4c79b83dd1e0722a0b0b13dbea95fbe334e2db7fffbcd841a5a92da8824848b539a19afe0c9fb]
Fedor Korotkovd0125d92018-05-03 14:24:02 -040064 SHARD: tests
Dan Fielda0fc3f32019-06-20 14:35:33 -070065 SUBSHARD: widgets
66 test_script:
67 - dart --enable-asserts ./dev/bots/test.dart
68 container:
69 cpu: 4
70 memory: 12G
71 - name: tests_framework_other-linux
72 env:
73 GCLOUD_SERVICE_ACCOUNT_KEY: ENCRYPTED[f12abe60f5045d619ef4c79b83dd1e0722a0b0b13dbea95fbe334e2db7fffbcd841a5a92da8824848b539a19afe0c9fb]
74 SHARD: tests
75 SUBSHARD: framework_other
76 test_script:
77 - dart --enable-asserts ./dev/bots/test.dart
78 container:
79 cpu: 4
80 memory: 12G
81 - name: tests_extras-linux
82 env:
83 GCLOUD_SERVICE_ACCOUNT_KEY: ENCRYPTED[f12abe60f5045d619ef4c79b83dd1e0722a0b0b13dbea95fbe334e2db7fffbcd841a5a92da8824848b539a19afe0c9fb]
84 SHARD: tests
85 SUBSHARD: extras
Greg Spencer1a414992018-07-25 15:19:57 -070086 test_script:
Ian Hickson58939b72019-02-12 12:29:36 -080087 - dart --enable-asserts ./dev/bots/test.dart
Fedor Korotkov73334592018-05-01 18:11:21 -040088 container:
89 cpu: 4
Fedor Korotkov9ae2bad2018-11-16 17:55:14 -050090 memory: 12G
Dan Fieldbb79ff32019-06-26 13:55:16 -070091 # all of the tests except the ones in test/integration and test/commands/create_test for packages/flutter_tools
Greg Spencer90a5f462018-07-20 10:21:34 -070092 - name: tool_tests-linux
93 env:
Dan Field20e0f132019-03-06 13:13:45 -080094 GCLOUD_SERVICE_ACCOUNT_KEY: ENCRYPTED[f12abe60f5045d619ef4c79b83dd1e0722a0b0b13dbea95fbe334e2db7fffbcd841a5a92da8824848b539a19afe0c9fb]
Greg Spencer90a5f462018-07-20 10:21:34 -070095 SHARD: tool_tests
Dan Fieldbb79ff32019-06-26 13:55:16 -070096 SUBSHARD: tool
97 test_script:
98 - dart --enable-asserts ./dev/bots/test.dart
99 container:
100 cpu: 4
101 memory: 12G
102 - name: tool_tests_create-linux
103 env:
104 GCLOUD_SERVICE_ACCOUNT_KEY: ENCRYPTED[f12abe60f5045d619ef4c79b83dd1e0722a0b0b13dbea95fbe334e2db7fffbcd841a5a92da8824848b539a19afe0c9fb]
105 SHARD: tool_tests
106 SUBSHARD: create
107 test_script:
108 - dart --enable-asserts ./dev/bots/test.dart
109 container:
110 cpu: 4
111 memory: 12G
112 # all of the tests in test/integration for packages/flutter_tools
113 - name: tool_tests_integration-linux
114 env:
115 GCLOUD_SERVICE_ACCOUNT_KEY: ENCRYPTED[f12abe60f5045d619ef4c79b83dd1e0722a0b0b13dbea95fbe334e2db7fffbcd841a5a92da8824848b539a19afe0c9fb]
116 SHARD: tool_tests
117 SUBSHARD: integration
Greg Spencer1a414992018-07-25 15:19:57 -0700118 test_script:
Ian Hickson58939b72019-02-12 12:29:36 -0800119 - dart --enable-asserts ./dev/bots/test.dart
Greg Spencer90a5f462018-07-20 10:21:34 -0700120 container:
121 cpu: 4
Fedor Korotkov9ae2bad2018-11-16 17:55:14 -0500122 memory: 12G
Jonah Williams33ad5ba2019-06-26 16:02:49 -0700123 - name: tool_coverage-linux
Jonah Williamsc0b93202019-06-28 13:57:10 -0700124 skip: "!changesInclude('packages/flutter_tools/**/*.dart') && $CIRRUS_BRANCH != 'master'"
Jonah Williams33ad5ba2019-06-26 16:02:49 -0700125 env:
126 GCLOUD_SERVICE_ACCOUNT_KEY: ENCRYPTED[f12abe60f5045d619ef4c79b83dd1e0722a0b0b13dbea95fbe334e2db7fffbcd841a5a92da8824848b539a19afe0c9fb]
127 CODECOV_TOKEN: ENCRYPTED[7c76a7f8c9264f3b7f3fd63fcf186f93c62c4dfe43ec288861c2f506d456681032b89efe7b7a139c82156350ca2c752c]
128 SHARD: tool_coverage
129 test_script:
130 - dart --enable-asserts ./dev/bots/test.dart
131 - bash <(curl -s https://codecov.io/bash) -c -s ./packages/flutter_tools/coverage/ -f '*.lcov.info' -F flutter_tool
132 container:
133 cpu: 8
134 memory: 24G
Jonah Williams41c7f0a2019-07-09 06:13:28 -0700135 # TODO(jonahwilliams): re-enabled once we've determined causes for flakiness
136 # - name: web_tests-linux
137 # allow_failures: true
138 # env:
139 # SHARD: web_tests
140 # test_script:
141 # - dart --enable-asserts ./dev/bots/test.dart
142 # container:
143 # cpu: 4
144 # memory: 12G
Dan Field72926bd2018-11-29 09:32:11 -0800145 - name: build_tests-linux
Yegor8d643012018-10-08 12:38:46 -0700146 env:
Dan Field72926bd2018-11-29 09:32:11 -0800147 SHARD: build_tests
Dan Field2a644f32019-03-10 07:52:44 -0700148 - name: integration_tests-linux
149 env:
150 SHARD: integration_tests
Yegor8d643012018-10-08 12:38:46 -0700151 test_script:
Amir Hardon3782b6a2019-01-03 16:27:47 -0800152 # Unsetting CIRRUS_CHANGE_MESSAGE and CIRRUS_COMMIT_MESSAGE as they
153 # might include non-ASCII characters which makes Gradle crash.
154 # See: https://github.com/flutter/flutter/issues/24935
155 # This is a temporary workaround until we figure how to properly configure
156 # a UTF8 locale on Cirrus (or until the Gradle bug is fixed).
157 # TODO(amirh): Set the locale to UTF8.
158 - echo "$CIRRUS_CHANGE_MESSAGE" > /tmp/cirrus_change_message.txt
159 - echo "$CIRRUS_COMMIT_MESSAGE" > /tmp/cirrus_commit_message.txt
160 - export CIRRUS_CHANGE_MESSAGE=""
161 - export CIRRUS_COMMIT_MESSAGE=""
Ian Hickson58939b72019-02-12 12:29:36 -0800162 - dart --enable-asserts ./dev/bots/test.dart
Amir Hardon3782b6a2019-01-03 16:27:47 -0800163 - export CIRRUS_CHANGE_MESSAGE=`cat /tmp/cirrus_change_message.txt`
164 - export CIRRUS_COMMIT_MESSAGE=`cat /tmp/cirrus_commit_message.txt`
Yegor8d643012018-10-08 12:38:46 -0700165 container:
166 cpu: 4
Fedor Korotkov9ae2bad2018-11-16 17:55:14 -0500167 memory: 12G
Dan Field36305252019-06-21 12:05:06 -0700168 - name: integration_tests_gradle1-linux
169 env:
170 SHARD: integration_tests
171 SUBSHARD: gradle1
172 test_script:
173 # Unsetting CIRRUS_CHANGE_MESSAGE and CIRRUS_COMMIT_MESSAGE as they
174 # might include non-ASCII characters which makes Gradle crash.
175 # See: https://github.com/flutter/flutter/issues/24935
176 # This is a temporary workaround until we figure how to properly configure
177 # a UTF8 locale on Cirrus (or until the Gradle bug is fixed).
178 # TODO(amirh): Set the locale to UTF8.
179 - echo "$CIRRUS_CHANGE_MESSAGE" > /tmp/cirrus_change_message.txt
180 - echo "$CIRRUS_COMMIT_MESSAGE" > /tmp/cirrus_commit_message.txt
181 - export CIRRUS_CHANGE_MESSAGE=""
182 - export CIRRUS_COMMIT_MESSAGE=""
183 - dart --enable-asserts ./dev/bots/test.dart
184 - export CIRRUS_CHANGE_MESSAGE=`cat /tmp/cirrus_change_message.txt`
185 - export CIRRUS_COMMIT_MESSAGE=`cat /tmp/cirrus_commit_message.txt`
186 container:
187 cpu: 4
188 memory: 12G
189 - name: integration_tests_gradle2-linux
190 env:
191 SHARD: integration_tests
192 SUBSHARD: gradle2
193 test_script:
194 # Unsetting CIRRUS_CHANGE_MESSAGE and CIRRUS_COMMIT_MESSAGE as they
195 # might include non-ASCII characters which makes Gradle crash.
196 # See: https://github.com/flutter/flutter/issues/24935
197 # This is a temporary workaround until we figure how to properly configure
198 # a UTF8 locale on Cirrus (or until the Gradle bug is fixed).
199 # TODO(amirh): Set the locale to UTF8.
200 - echo "$CIRRUS_CHANGE_MESSAGE" > /tmp/cirrus_change_message.txt
201 - echo "$CIRRUS_COMMIT_MESSAGE" > /tmp/cirrus_commit_message.txt
202 - export CIRRUS_CHANGE_MESSAGE=""
203 - export CIRRUS_COMMIT_MESSAGE=""
204 - dart --enable-asserts ./dev/bots/test.dart
205 - export CIRRUS_CHANGE_MESSAGE=`cat /tmp/cirrus_change_message.txt`
206 - export CIRRUS_COMMIT_MESSAGE=`cat /tmp/cirrus_commit_message.txt`
207 container:
208 cpu: 4
209 memory: 12G
Dan Field4a60bee2019-06-18 11:06:09 -0700210 - name: release_smoke_tests
211 env:
212 CLOUDSDK_CORE_DISABLE_PROMPTS: 1
213 GCLOUD_FIREBASE_TESTLAB_KEY: ENCRYPTED[1c140257edc48f5578fa5a0e5038b84c8e53270c405efa5a8e35ea303a4e0d135853989f448f72136206de854d17fbec]
Jonah Williamsb9932d52019-06-20 08:20:57 -0700214 test_script:
215 - echo "$CIRRUS_CHANGE_MESSAGE" > /tmp/cirrus_change_message.txt
216 - echo "$CIRRUS_COMMIT_MESSAGE" > /tmp/cirrus_commit_message.txt
217 - export CIRRUS_CHANGE_MESSAGE=""
218 - export CIRRUS_COMMIT_MESSAGE=""
219 - ./dev/bots/firebase_testlab.sh
220 - export CIRRUS_CHANGE_MESSAGE=`cat /tmp/cirrus_change_message.txt`
221 - export CIRRUS_COMMIT_MESSAGE=`cat /tmp/cirrus_commit_message.txt`
Fedor Korotkov73334592018-05-01 18:11:21 -0400222
Dan Fieldbb79ff32019-06-26 13:55:16 -0700223
224task:
225 use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true' && $CIRRUS_PR == ''
226 windows_container:
227 image: cirrusci/android-sdk:28-windowsservercore-2019
228 os_version: 2019
229 cpu: 4
230 env:
231 CIRRUS_WORKING_DIR: "C:\\Windows\\Temp\\flutter sdk"
232 git_fetch_script:
233 - git clean -xfd
234 - git fetch origin
235 - git fetch origin master # To set FETCH_HEAD for "git merge-base" to work
236 pub_cache:
237 folder: $APPDATA\Pub\Cache
238 fingerprint_script:
239 - ps: $Env:OS; Get-ChildItem -Path "$Env:CIRRUS_WORKING_DIR" pubspec.yaml -Recurse | Select-String -Pattern "PUBSPEC CHECKSUM" -SimpleMatch
240 flutter_pkg_cache:
241 folder: bin\cache\pkg
242 fingerprint_script: echo %OS% & type bin\internal\engine.version
243 artifacts_cache:
244 folder: bin\cache\artifacts
245 fingerprint_script: echo %OS% & type bin\internal\engine.version
246 setup_script:
247 - bin\flutter.bat config --no-analytics
248 - bin\flutter.bat doctor -v
249 - bin\flutter.bat update-packages
250 - git fetch origin master
251 test_all_script:
252 - bin\cache\dart-sdk\bin\dart.exe --enable-asserts dev\bots\test.dart
253 matrix:
254 # all of the tests except test/integration and test/commands/create_test for packages/flutter_tools
255 - name: tool_tests-windows
256 env:
257 GCLOUD_SERVICE_ACCOUNT_KEY: ENCRYPTED[f12abe60f5045d619ef4c79b83dd1e0722a0b0b13dbea95fbe334e2db7fffbcd841a5a92da8824848b539a19afe0c9fb]
258 SHARD: tool_tests
259 SUBSHARD: tool
260 SHARD_INDEX: 1
261 # all of the tests in test/commands/create_test
262 - name: tool_tests_create-windows
263 env:
264 GCLOUD_SERVICE_ACCOUNT_KEY: ENCRYPTED[f12abe60f5045d619ef4c79b83dd1e0722a0b0b13dbea95fbe334e2db7fffbcd841a5a92da8824848b539a19afe0c9fb]
265 SHARD: tool_tests
266 SUBSHARD: create
267 # all of the tests in test/integration for packages/flutter_tools
268 - name: tool_tests_integration-windows
269 env:
270 GCLOUD_SERVICE_ACCOUNT_KEY: ENCRYPTED[f12abe60f5045d619ef4c79b83dd1e0722a0b0b13dbea95fbe334e2db7fffbcd841a5a92da8824848b539a19afe0c9fb]
271 SHARD: tool_tests
272 SUBSHARD: integration
273
Fedor Korotkovd0125d92018-05-03 14:24:02 -0400274task:
Dan Field837b3302019-03-10 11:11:59 -0700275 use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true' && $CIRRUS_PR == ''
Fedor Korotkov73334592018-05-01 18:11:21 -0400276 windows_container:
Fedor Korotkov4bc8e9c2019-05-23 12:35:58 -0400277 image: cirrusci/android-sdk:28-windowsservercore-2019
278 os_version: 2019
Fedor Korotkov67b5ed42018-06-06 11:43:13 -0400279 cpu: 4
Fedor Korotkov73334592018-05-01 18:11:21 -0400280 env:
281 CIRRUS_WORKING_DIR: "C:\\Windows\\Temp\\flutter sdk"
Greg Spencer77645df2018-08-06 17:33:31 -0700282 git_fetch_script:
Dan Field20e0f132019-03-06 13:13:45 -0800283 - git clean -xfd
Greg Spencer77645df2018-08-06 17:33:31 -0700284 - git fetch origin
285 - git fetch origin master # To set FETCH_HEAD for "git merge-base" to work
Danny Tuppeny07e93b32018-08-02 20:45:07 +0100286 pub_cache:
287 folder: $APPDATA\Pub\Cache
288 fingerprint_script:
289 - ps: $Env:OS; Get-ChildItem -Path "$Env:CIRRUS_WORKING_DIR" pubspec.yaml -Recurse | Select-String -Pattern "PUBSPEC CHECKSUM" -SimpleMatch
290 flutter_pkg_cache:
291 folder: bin\cache\pkg
292 fingerprint_script: echo %OS% & type bin\internal\engine.version
293 artifacts_cache:
294 folder: bin\cache\artifacts
295 fingerprint_script: echo %OS% & type bin\internal\engine.version
Fedor Korotkov73334592018-05-01 18:11:21 -0400296 setup_script:
297 - bin\flutter.bat config --no-analytics
Dan Fieldcfc35722019-05-01 15:18:03 -0700298 - bin\flutter.bat doctor -v
Fedor Korotkov73334592018-05-01 18:11:21 -0400299 - bin\flutter.bat update-packages
Greg Spencer9f390392018-07-19 23:05:37 -0700300 - git fetch origin master
Greg Spencer1a414992018-07-25 15:19:57 -0700301 test_all_script:
liyuqian0b687122019-03-27 12:31:04 -0700302 - bin\cache\dart-sdk\bin\dart.exe --enable-asserts dev\bots\test.dart
Danny Tuppenyc3248b72018-08-01 17:34:36 +0100303 matrix:
Dan Fielda0fc3f32019-06-20 14:35:33 -0700304 - name: tests_widgets-windows
Danny Tuppenyc3248b72018-08-01 17:34:36 +0100305 env:
Dan Field20e0f132019-03-06 13:13:45 -0800306 GCLOUD_SERVICE_ACCOUNT_KEY: ENCRYPTED[f12abe60f5045d619ef4c79b83dd1e0722a0b0b13dbea95fbe334e2db7fffbcd841a5a92da8824848b539a19afe0c9fb]
Danny Tuppenyc3248b72018-08-01 17:34:36 +0100307 SHARD: tests
Dan Fielda0fc3f32019-06-20 14:35:33 -0700308 SUBSHARD: widgets
309 - name: tests_framework_other-windows
310 env:
311 GCLOUD_SERVICE_ACCOUNT_KEY: ENCRYPTED[f12abe60f5045d619ef4c79b83dd1e0722a0b0b13dbea95fbe334e2db7fffbcd841a5a92da8824848b539a19afe0c9fb]
312 SHARD: tests
313 SUBSHARD: framework_other
314 - name: tests_extras-windows
315 env:
316 GCLOUD_SERVICE_ACCOUNT_KEY: ENCRYPTED[f12abe60f5045d619ef4c79b83dd1e0722a0b0b13dbea95fbe334e2db7fffbcd841a5a92da8824848b539a19afe0c9fb]
317 SHARD: tests
318 SUBSHARD: extras
Dan Field72926bd2018-11-29 09:32:11 -0800319 - name: build_tests-windows
320 env:
321 SHARD: build_tests
322 container:
323 cpu: 4
324 memory: 12G
Dan Field2a644f32019-03-10 07:52:44 -0700325 - name: integration_tests-windows
326 env:
327 SHARD: integration_tests
328 container:
329 cpu: 4
330 memory: 12G
Greg Spencer2af2a082018-07-18 15:33:38 -0700331
332task:
Greg Spencer30ba6572019-01-11 07:52:09 -0800333 use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
Greg Spencer77645df2018-08-06 17:33:31 -0700334 name: deploy_gallery-macos
Greg Spencer77645df2018-08-06 17:33:31 -0700335 pub_cache:
336 folder: ~/.pub-cache
Fedor Korotkov8380e202018-08-02 12:58:23 -0400337 depends_on:
338 - analyze
Dan Field72926bd2018-11-29 09:32:11 -0800339 - build_tests-macos
Greg Spencer77645df2018-08-06 17:33:31 -0700340 env:
341 # Name the SDK directory to include a space so that we constantly
342 # test path names with spaces in them.
343 CIRRUS_WORKING_DIR: "/tmp/flutter sdk"
344 SHARD: deploy_gallery
xsterd0f89c12019-04-05 18:55:33 -0700345 # Apple Fastlane password.
346 FASTLANE_PASSWORD: ENCRYPTED[4b1f0b8d52874e9de965acd46c79743f3b81f3a513614179b9be7cf53dc8258753e257bdadb11a298ee455259df21865]
347 # Private repo for publishing certificates.
348 PUBLISHING_MATCH_CERTIFICATE_REPO: ENCRYPTED[3c0e78877d933fc80107aa6f3790fd1cf927250b852d6cb53202be696b4903ed8ca839b809626aaf18050bf7e436fab7]
349 PUBLISHING_MATCH_REPO_TOKEN: ENCRYPTED[3d1230b744c6ed6c788a91bec741b769401dbcd426b18f9af8080bfeefdfc21913ca4047980c5b5b7ce823f12e7b6b19]
Greg Spencer77645df2018-08-06 17:33:31 -0700350 # Apple Certificates Match Passphrase
351 MATCH_PASSWORD: ENCRYPTED[db07f252234397090e3ec59152d9ec1831f5ecd0ef97d247b1dca757bbb9ef9b7c832a39bce2caf1949ccdf097e59a73]
Greg Spencer2af2a082018-07-18 15:33:38 -0700352 osx_instance:
Reece Dunhamd4474122019-03-06 12:35:27 -0500353 image: mojave-xcode-10.1
Dan Field0360d0f2019-03-08 07:08:32 -0800354 # occasionally the clock on these machines is out of sync
355 # with the actual time - this should help to verify
356 print_date_script:
357 - date
Jenn Magderc8bf7ab2019-06-10 14:30:28 -0700358 install_cocoapods_script:
359 - sudo gem install cocoapods
Greg Spencer77645df2018-08-06 17:33:31 -0700360 git_fetch_script:
Dan Field20e0f132019-03-06 13:13:45 -0800361 - git clean -xfd
Greg Spencer68e03002018-08-08 09:54:56 -0700362 - git fetch origin
363 - git fetch origin master # To set FETCH_HEAD
Greg Spencer77645df2018-08-06 17:33:31 -0700364 setup_script:
365 - bin/flutter config --no-analytics
366 - bin/flutter update-packages
367 test_all_script:
368 - ./dev/bots/deploy_gallery.sh
369
370task:
Greg Spencer30ba6572019-01-11 07:52:09 -0800371 use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
Greg Spencer77645df2018-08-06 17:33:31 -0700372 osx_instance:
Dan Fieldb484a912019-02-23 09:56:27 -0800373 image: mojave-xcode-10.1
Greg Spencer77645df2018-08-06 17:33:31 -0700374 depends_on:
375 - analyze
Danny Tuppeny766982a2018-08-01 21:32:06 +0100376 env:
377 CIRRUS_WORKING_DIR: "/tmp/flutter sdk"
Dan Fieldb484a912019-02-23 09:56:27 -0800378 COCOAPODS_DISABLE_STATS: true
Dan Fieldbb79ff32019-06-26 13:55:16 -0700379 print_date_script:
380 - date
381 git_fetch_script:
382 - git clean -xfd
383 - git fetch origin
384 - git fetch origin master # To set FETCH_HEAD for "git merge-base" to work
385 pub_cache:
386 folder: $HOME/.pub-cache
387 fingerprint_script: echo $OS; grep -r --include=pubspec.yaml 'PUBSPEC CHECKSUM' "$CIRRUS_WORKING_DIR"
388 flutter_pkg_cache:
389 folder: bin/cache/pkg
390 fingerprint_script: echo $OS; cat bin/internal/engine.version
391 artifacts_cache:
392 folder: bin/cache/artifacts
393 fingerprint_script: echo $OS; cat bin/internal/engine.version
394 setup_script:
395 - bin/flutter config --no-analytics
396 - bin/flutter doctor -v
397 - bin/flutter update-packages
398 test_all_script: |
399 ulimit -S -n 2048 # https://github.com/flutter/flutter/issues/2976
400 bin/cache/dart-sdk/bin/dart --enable-asserts dev/bots/test.dart
401 matrix:
402 # all of the tests except test/integration and test/commands/create_test for packages/flutter_tools
403 - name: tool_tests-macos
404 env:
405 GCLOUD_SERVICE_ACCOUNT_KEY: ENCRYPTED[f12abe60f5045d619ef4c79b83dd1e0722a0b0b13dbea95fbe334e2db7fffbcd841a5a92da8824848b539a19afe0c9fb]
406 SHARD: tool_tests
407 SUBSHARD: tool
408 SHARD_INDEX: 1
409 # all of the tests in test/commands/create_test
410 - name: tool_tests_create-macos
411 env:
412 GCLOUD_SERVICE_ACCOUNT_KEY: ENCRYPTED[f12abe60f5045d619ef4c79b83dd1e0722a0b0b13dbea95fbe334e2db7fffbcd841a5a92da8824848b539a19afe0c9fb]
413 SHARD: tool_tests
414 SUBSHARD: create
415 # all of the tests in test/integration for packages/flutter_tools
416 - name: tool_tests_integration-macos
417 env:
418 GCLOUD_SERVICE_ACCOUNT_KEY: ENCRYPTED[f12abe60f5045d619ef4c79b83dd1e0722a0b0b13dbea95fbe334e2db7fffbcd841a5a92da8824848b539a19afe0c9fb]
419 SHARD: tool_tests
420 SUBSHARD: integration
421
422task:
423 use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
424 osx_instance:
425 image: mojave-xcode-10.1
426 depends_on:
427 - analyze
428 env:
429 CIRRUS_WORKING_DIR: "/tmp/flutter sdk"
430 COCOAPODS_DISABLE_STATS: true
Fedor Korotkove525e642019-03-20 17:51:45 -0400431 matrix:
Dan Fielda0fc3f32019-06-20 14:35:33 -0700432 - name: tests_widgets-macos
Fedor Korotkove525e642019-03-20 17:51:45 -0400433 env:
434 GCLOUD_SERVICE_ACCOUNT_KEY: ENCRYPTED[f12abe60f5045d619ef4c79b83dd1e0722a0b0b13dbea95fbe334e2db7fffbcd841a5a92da8824848b539a19afe0c9fb]
435 SHARD: tests
Dan Fielda0fc3f32019-06-20 14:35:33 -0700436 SUBSHARD: widgets
437 - name: tests_framework_other-macos
438 env:
439 GCLOUD_SERVICE_ACCOUNT_KEY: ENCRYPTED[f12abe60f5045d619ef4c79b83dd1e0722a0b0b13dbea95fbe334e2db7fffbcd841a5a92da8824848b539a19afe0c9fb]
440 SHARD: tests
441 SUBSHARD: framework_other
442 - name: tests_extras-macos
443 env:
444 GCLOUD_SERVICE_ACCOUNT_KEY: ENCRYPTED[f12abe60f5045d619ef4c79b83dd1e0722a0b0b13dbea95fbe334e2db7fffbcd841a5a92da8824848b539a19afe0c9fb]
445 SHARD: tests
446 SUBSHARD: extras
Fedor Korotkove525e642019-03-20 17:51:45 -0400447 - name: $SHARD-macos
448 env:
449 matrix:
Jonah Williams20d8ea72019-04-17 16:00:12 -0700450 # The flakiness of this target has increased beyond tolerable levels. Until we can stabilize it,
451 # keep the shard disabled.
452 # - SHARD: integration_tests
Fedor Korotkove525e642019-03-20 17:51:45 -0400453 - SHARD: build_tests
454 COCOAPODS_DISABLE_STATS: true
455 FLUTTER_FRAMEWORK_DIR: "/tmp/flutter sdk/bin/cache/artifacts/engine/ios/"
456 osx_instance:
457 image: mojave-flutter
458 remove_preinstalled_fluuter_script: rm -rf $FLUTTER_HOME
459 - name: add2app-macos
460 env:
461 SHARD: add2app_test
Dan Field0360d0f2019-03-08 07:08:32 -0800462 # occasionally the clock on these machines is out of sync
463 # with the actual time - this should help to verify
464 print_date_script:
465 - date
Dan Field72926bd2018-11-29 09:32:11 -0800466 install_cocoapods_script:
467 - sudo gem install cocoapods
Greg Spencer77645df2018-08-06 17:33:31 -0700468 git_fetch_script:
Dan Field20e0f132019-03-06 13:13:45 -0800469 - git clean -xfd
Greg Spencer77645df2018-08-06 17:33:31 -0700470 - git fetch origin
471 - git fetch origin master # To set FETCH_HEAD for "git merge-base" to work
Danny Tuppeny07e93b32018-08-02 20:45:07 +0100472 pub_cache:
473 folder: $HOME/.pub-cache
474 fingerprint_script: echo $OS; grep -r --include=pubspec.yaml 'PUBSPEC CHECKSUM' "$CIRRUS_WORKING_DIR"
475 flutter_pkg_cache:
476 folder: bin/cache/pkg
477 fingerprint_script: echo $OS; cat bin/internal/engine.version
478 artifacts_cache:
479 folder: bin/cache/artifacts
480 fingerprint_script: echo $OS; cat bin/internal/engine.version
Greg Spencer2af2a082018-07-18 15:33:38 -0700481 setup_script:
482 - bin/flutter config --no-analytics
Dan Fieldcfc35722019-05-01 15:18:03 -0700483 - bin/flutter doctor -v
Greg Spencer2af2a082018-07-18 15:33:38 -0700484 - bin/flutter update-packages
Fedor Korotkov1ab1fc62019-03-12 19:08:03 -0400485 test_all_script: |
486 ulimit -S -n 2048 # https://github.com/flutter/flutter/issues/2976
487 bin/cache/dart-sdk/bin/dart --enable-asserts dev/bots/test.dart
Greg Spencer77645df2018-08-06 17:33:31 -0700488
489docker_builder:
490 # Only build a new docker image when we tag a release (for dev, beta, or release.)
491 only_if: $CIRRUS_TAG != ''
492 env:
493 GCLOUD_CREDENTIALS: ENCRYPTED[f7c098d4dd7f5ee1bfee0bb7e944cce72efbe10e97ad6440ae72de4de6a1c24d23f421a2619c668e94377fb64b0bb3e6]
494 depends_on:
495 - docs
496 - analyze
Dan Fielda0fc3f32019-06-20 14:35:33 -0700497 - tests_widgets-linux
498 - tests_framework_other-linux
499 - tests_extras-linux
Greg Spencer77645df2018-08-06 17:33:31 -0700500 - tool_tests-linux
Dan Fieldbb79ff32019-06-26 13:55:16 -0700501 - tool_tests_create-linux
502 - tool_tests_integration-linux
Dan Field72926bd2018-11-29 09:32:11 -0800503 - build_tests-linux
Dan Field2a644f32019-03-10 07:52:44 -0700504 - integration_tests-linux
Dan Field36305252019-06-21 12:05:06 -0700505 - integration_tests_gradle-linux
Greg Spencer77645df2018-08-06 17:33:31 -0700506 build_script: "$CIRRUS_WORKING_DIR/dev/ci/docker_linux/docker_build.sh"
507 login_script: "$CIRRUS_WORKING_DIR/dev/ci/docker_linux/docker_login.sh"
508 push_script: "$CIRRUS_WORKING_DIR/dev/ci/docker_linux/docker_push.sh"