Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 8d49b27

Browse files
committed
Use flutter gcp project for linux tasks.
Bug: flutter/flutter#77624
1 parent 7173380 commit 8d49b27

File tree

1 file changed

+45
-3
lines changed

1 file changed

+45
-3
lines changed

.cirrus.yml

Lines changed: 45 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
gcp_credentials: ENCRYPTED[ec898795b6f1b54f9cc2ab4104909f1053651f65fcab96397cfdc33dae6df5fd0fa972e29ba19f4f95125de844ab1641]
2+
13
# Don't run on release tags since it creates O(n^2) tasks where n is the
24
# number of plugins
35
only_if: $CIRRUS_TAG == ''
4-
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true' && $CIRRUS_PR == ''
56
env:
67
INTEGRATION_TEST_PATH: "./packages/integration_test"
78
CHANNEL: "master" # Default to master when not explicitly set by a task.
@@ -32,8 +33,13 @@ macos_template: &MACOS_TEMPLATE
3233
# concurrency limits.
3334
task:
3435
<< : *FLUTTER_UPGRADE_TEMPLATE
35-
container:
36+
gke_container:
3637
dockerfile: .ci/Dockerfile
38+
builder_image_name: docker-builder # gce vm image
39+
builder_image_project: flutter-cirrus
40+
cluster_name: build-32-cluster
41+
zone: us-central1-a
42+
namespace: default
3743
matrix:
3844
### Platform-agnostic tasks ###
3945
- name: plugin_tools_tests
@@ -110,6 +116,37 @@ task:
110116
build_script:
111117
- flutter config --enable-linux-desktop
112118
- ./script/incremental_build.sh build-examples --linux
119+
- xvfb-run ./script/incremental_build.sh drive-examples --linux
120+
121+
# Legacy Dockerfile configuration for web integration tests.
122+
# https://github.com/flutter/web_installers doesn't yet support the current
123+
# stable version of Chrome, so newly-generated Docker images don't work.
124+
# TODO: Merge this task into the "Web tasks" section of the "Light-workload
125+
# tasks" block above once web_installers has been updated to support Chrome 89
126+
# (which is what the current image generated from .ci/Dockerfile has).
127+
task:
128+
<< : *FLUTTER_UPGRADE_TEMPLATE
129+
gke_container:
130+
dockerfile: .ci/Dockerfile-LegacyChrome
131+
builder_image_name: docker-builder # gce vm image
132+
builder_image_project: flutter-cirrus
133+
cluster_name: build-32-cluster
134+
zone: us-central1-a
135+
namespace: default
136+
matrix:
137+
- name: integration_web_smoke_test
138+
env:
139+
matrix:
140+
CHANNEL: "master"
141+
CHANNEL: "stable"
142+
# Tests integration example test in web.
143+
only_if: "changesInclude('.cirrus.yml', 'packages/integration_test/**') || $CIRRUS_PR == ''"
144+
install_script:
145+
- git clone https://github.com/flutter/web_installers.git
146+
- cd web_installers/packages/web_drivers/
147+
- pub get
148+
- dart lib/web_driver_installer.dart chromedriver --install-only
149+
- ./chromedriver/chromedriver --port=4444 &
113150
test_script:
114151
- xvfb-run ./script/incremental_build.sh drive-examples --linux
115152

@@ -118,8 +155,13 @@ task:
118155
# for non-credit runs.
119156
task:
120157
<< : *FLUTTER_UPGRADE_TEMPLATE
121-
container:
158+
gke_container:
122159
dockerfile: .ci/Dockerfile
160+
builder_image_name: docker-builder # gce vm image
161+
builder_image_project: flutter-cirrus
162+
cluster_name: build-32-cluster
163+
zone: us-central1-a
164+
namespace: default
123165
cpu: 4
124166
memory: 12G
125167
matrix:

0 commit comments

Comments
 (0)