-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcodemagic.yaml
93 lines (91 loc) · 2.7 KB
/
codemagic.yaml
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
92
93
# Config for codemagic CI/CD
workflows:
ios-workflow:
name: iOS Integration Tests
instance_type: mac_mini_m1
max_build_duration: 60
environment:
flutter: 3.16.3
xcode: 14.3.1
cache:
cache_paths:
- $FLUTTER_ROOT/.pub-cache
- $HOME/Library/Caches/CocoaPods
scripts:
- name: Install Patrol CLI
script: dart pub global activate patrol_cli
- name: Launch iOS simulator
script: |
flutter emulators --launch apple_ios_simulator
- name: Run integration tests with Patrol
script: |
patrol test --verbose
test_report: build/*.xcresult
ignore_failure: false
artifacts:
- build/*.xcresult
android-workflow:
name: Android Integration Tests
instance_type: linux_x2
max_build_duration: 60
environment:
flutter: 3.16.3
cache:
cache_paths:
- $FLUTTER_ROOT/.pub-cache
- $HOME/.gradle/caches
scripts:
- name: Install Patrol CLI
script: dart pub global activate patrol_cli
- name: Launch Android emulator
script: |
flutter emulators --launch emulator &
cd $ANDROID_HOME/tools
adb wait-for-device
- name: Run integration tests with Patrol
script: |
flutter build apk --config-only
patrol test --verbose
test_report: build/app/outputs/androidTest-results/connected/*.xml
ignore_failure: false
artifacts:
- build/app/outputs/androidTest-results/connected/*
- build/app/reports/androidTests/connected/*
android-ew-workflow:
name: Android Integration Tests on emulator.wtf
instance_type: mac_mini_m1
max_build_duration: 60
environment:
flutter: 3.16.3
groups:
- emulatorwtf
cache:
cache_paths:
- $FLUTTER_ROOT/.pub-cache
- $HOME/.gradle/caches
scripts:
- name: Install Patrol CLI
script: dart pub global activate patrol_cli
- name: Patrol doctor
script: |
flutter config --no-analytics
flutter --version
flutter doctor
patrol doctor
ignore_failure: true
- name: Build test-apk
script: |
flutter build apk --config-only
patrol build android
- name: Run integration tests on ew
script: |
ew-cli \
--app build/app/outputs/apk/debug/app-debug.apk \
--test build/app/outputs/apk/androidTest/debug/app-debug-androidTest.apk \
--device model=Pixel2,version=33 \
--record-video \
--outputs-dir results
test_report: results/**/*.xml
ignore_failure: false
artifacts:
- results/*