Skip to content
27 changes: 26 additions & 1 deletion .ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,14 @@ targets:
properties:
add_recipes_cq: "true"
version_file: flutter_master.version
target_file: linux_build_all_packages.yaml
# DO NOT LAND: For testing
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this PR just for testing?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The last commit to this PR is for testing, to see if it would work (which it didn't, thus flutter/flutter#130074)

target_file: linux_platform_tests.yaml
channel: master
# DO NOT LAND: For testing
dependencies: >-
[
{"dependency": "chrome_and_driver", "version": "version:114.0"}
]

- name: Linux_desktop build_all_packages stable
recipe: packages/packages
Expand All @@ -303,6 +309,25 @@ targets:
target_file: linux_build_all_packages.yaml
channel: stable

- name: Linux_desktop platform_tests master
bringup: true # New target
recipe: packages/packages
timeout: 30
properties:
version_file: flutter_master.version
target_file: linux_platform_tests.yaml
channel: master

- name: Linux_desktop platform_tests stable
bringup: true # New target
recipe: packages/packages
presubmit: false
timeout: 30
properties:
version_file: flutter_stable.version
target_file: linux_platform_tests.yaml
channel: stable

### iOS+macOS tasks ###
# TODO(stuartmorgan): Move this to ARM once google_maps_flutter has ARM
# support. `pod lint` makes a synthetic target that doesn't respect the
Expand Down
8 changes: 8 additions & 0 deletions .ci/scripts/set_default_linux_apps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
set -e

xdg-mime default google-chrome.desktop inode/directory
xdg-settings set default-web-browser google-chrome.desktop
7 changes: 7 additions & 0 deletions .ci/scripts/xvfb_tool_runner.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
set -e

xvfb-run ./script/tool_runner.sh "$@"
14 changes: 14 additions & 0 deletions .ci/targets/linux_platform_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
tasks:
- name: prepare tool
script: .ci/scripts/prepare_tool.sh
- name: set default apps
script: .ci/scripts/set_default_linux_apps.sh
- name: build examples
script: script/tool_runner.sh
args: ["build-examples", "--linux"]
- name: native test
script: .ci/scripts/xvfb_tool_runner.sh
args: ["native-test", "--linux"]
- name: drive examples
script: .ci/scripts/xvfb_tool_runner.sh
args: ["drive-examples", "--linux", "--exclude=script/configs/exclude_integration_linux.yaml"]