-
Notifications
You must be signed in to change notification settings - Fork 390
/
Copy path.cirrus.yml
91 lines (78 loc) · 3.04 KB
/
.cirrus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
environment:
TEST_APP_ID: ENCRYPTED[35f838f43927daee9022488c072139d0358284db67709b9fa810f694fb4d06ec42e24a51756682df9c3544d1c1c540a2]
# The flutter sdk is located in /Users/admin/flutter by default in cirrus cis
MACOS_HOST_FLUTTER_SDK_DIR: /Users/admin/flutter
default_filters: &default_filters
only_if: $CIRRUS_REPO_OWNER == 'AgoraIO-Extensions' && $CIRRUS_PR != '' && $CIRRUS_PR_LABELS !=~ 'ci:skip'
default_macos_container: &default_macos_container
macos_instance:
image: ghcr.io/cirruslabs/macos-ventura-xcode:14
android_integratinon_test_task:
<<: *default_filters
container:
# Only run min support flutter sdk 2.10.5, and latest flutter sdk version
matrix:
- image: cirrusci/flutter:2.10.5 # min supported version
- image: cirrusci/flutter:3.7.0 # latest supported version
cpu: 8
memory: 16G
kvm: true
create_device_script:
- sdkmanager --install "system-images;android-30;google_apis;x86_64"
- echo no | avdmanager create avd -n test -k "system-images;android-30;google_apis;x86_64"
start_emulator_background_script:
$ANDROID_HOME/emulator/emulator
-avd test
-no-audio
-no-window
wait_for_emulator_script:
adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 3; done; input keyevent 82'
disable_animations_script:
- adb shell settings put global window_animation_scale 0.0
- adb shell settings put global transition_animation_scale 0.0
- adb shell settings put global animator_duration_scale 0.0
run_android_test_script:
- flutter doctor -v
- bash ci/run_flutter_integration_test_android.sh
android_build_task:
<<: *default_filters
<<: *default_macos_container
matrix:
- name: FLUTTER_VERSION 2.10.5
env:
FLUTTER_VERSION: 2.10.5
- name: FLUTTER_VERSION 3.0.0
env:
FLUTTER_VERSION: 3.0.0
- name: FLUTTER_VERSION 3.3.0
env:
FLUTTER_VERSION: 3.3.0
- name: FLUTTER_VERSION 3.7.0
env:
FLUTTER_VERSION: 3.7.0
switch_flutter_version_script:
- cd ${MACOS_HOST_FLUTTER_SDK_DIR}
- git fetch
- git checkout ${FLUTTER_VERSION} && flutter precache
build_android_x86_64_script:
- cd example
- arch -x86_64 flutter doctor -v
- arch -x86_64 flutter packages get
- arch -x86_64 flutter build apk
build_android_arm64_script:
- cd example
- flutter doctor -v
- flutter clean
- flutter packages get
- flutter build apk
ios_rendering_test_task:
<<: *default_filters
<<: *default_macos_container
create_ios_simulator_script:
- xcrun simctl list
# We generate the screenshots base on the simulator "iPhone 13 Pro Max", so we set the SimDeviceType to iPhone-13-Pro-Max.
# If you need to change the SimDeviceType, you may need to re-generate the screenshots first.
- xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-13-Pro-Max com.apple.CoreSimulator.SimRuntime.iOS-16-0 | xargs xcrun simctl boot
run_ios_test_script:
- flutter doctor -v
- bash ci/rendering_test_ios.sh