forked from bugsnag/bugsnag-flutter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpipeline.yml
212 lines (197 loc) · 6.68 KB
/
pipeline.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
agents:
queue: macos-12-arm
steps:
- label: ":test_tube: 2.5.0"
timeout_in_minutes: 10
env:
FLUTTER_BIN: "/opt/flutter/2.5.0/bin/flutter"
commands:
- make test
- label: ":test_tube: 3.0.1"
timeout_in_minutes: 10
env:
FLUTTER_BIN: "/opt/flutter/3.0.1/bin/flutter"
commands:
- make test
- label: ":lint-roller: 2.5.0"
timeout_in_minutes: 10
env:
FLUTTER_BIN: "/opt/flutter/2.5.0/bin/flutter"
commands:
- make lint
- label: ":lint-roller: 3.0.1"
timeout_in_minutes: 10
env:
FLUTTER_BIN: "/opt/flutter/3.0.1/bin/flutter"
commands:
- make lint
- label: Build Example App 2.5.0
timeout_in_minutes: 10
env:
FLUTTER_BIN: "/opt/flutter/2.5.0/bin/flutter"
commands:
- pod repo update
- make examples/flutter
# Verify that App.framework's UUID (and therefore our `codeIdentifier`) changes when Dart code is touched
- dwarfdump --arch=arm64 --uuid examples/flutter/build/ios/iphoneos/Runner.app/Frameworks/App.framework/App | tee uuid_before
- sed -i '' -e 's/add_your_api_key_here/my_api_key/' examples/flutter/lib/main.dart
- make examples/flutter
- dwarfdump --arch=arm64 --uuid examples/flutter/build/ios/iphoneos/Runner.app/Frameworks/App.framework/App | tee uuid_after
- test "$(cat uuid_before)" != "$(cat uuid_after)"
- label: Build Example App 3.0.1
timeout_in_minutes: 10
env:
FLUTTER_BIN: "/opt/flutter/3.0.1/bin/flutter"
commands:
- pod repo update
- make examples/flutter
# Verify that App.framework's UUID (and therefore our `codeIdentifier`) changes when Dart code is touched
- dwarfdump --arch=arm64 --uuid examples/flutter/build/ios/iphoneos/Runner.app/Frameworks/App.framework/App | tee uuid_before
- sed -i '' -e 's/add_your_api_key_here/my_api_key/' examples/flutter/lib/main.dart
- make examples/flutter
- dwarfdump --arch=arm64 --uuid examples/flutter/build/ios/iphoneos/Runner.app/Frameworks/App.framework/App | tee uuid_after
- test "$(cat uuid_before)" != "$(cat uuid_after)"
#
# iOS
#
- label: Build iOS Test Fixture 2.5.0
key: "ios-fixture-2-8-1"
timeout_in_minutes: 20
env:
FLUTTER_BIN: "/opt/flutter/2.5.0/bin/flutter"
commands:
- pod repo update trunk
- features/scripts/build_ios_app.sh
plugins:
artifacts#v1.5.0:
upload:
from: "features/fixtures/app/build/ios/ipa/app.ipa"
to: "features/fixtures/app/build/ios/ipa/app-2.5.0.ipa"
- label: Build iOS Test Fixture 3.0.1
key: "ios-fixture-3-0-1"
timeout_in_minutes: 20
env:
FLUTTER_BIN: "/opt/flutter/3.0.1/bin/flutter"
commands:
- pod repo update trunk
- features/scripts/build_ios_app.sh
plugins:
artifacts#v1.5.0:
upload:
from: "features/fixtures/app/build/ios/ipa/app.ipa"
to: "features/fixtures/app/build/ios/ipa/app-3.0.1.ipa"
- label: 'iOS 14 end-to-end tests 2.5.0'
depends_on: "ios-fixture-2-8-1"
timeout_in_minutes: 10
env:
FLUTTER_BIN: "/opt/flutter/2.5.0/bin/flutter"
agents:
queue: opensource
plugins:
artifacts#v1.5.0:
download: "features/fixtures/app/build/ios/ipa/app-2.5.0.ipa"
upload: "maze_output/failed/**/*"
docker-compose#v3.7.0:
pull: maze-runner
run: maze-runner
command:
- "--app=/app/features/fixtures/app/build/ios/ipa/app-2.5.0.ipa"
- "--farm=bs"
- "--device=IOS_14"
- "--fail-fast"
concurrency: 5
concurrency_group: 'browserstack-app'
concurrency_method: eager
- label: 'iOS 14 end-to-end tests 3.0.1'
depends_on: "ios-fixture-3-0-1"
timeout_in_minutes: 10
env:
FLUTTER_BIN: "/opt/flutter/3.0.1/bin/flutter"
agents:
queue: opensource
plugins:
artifacts#v1.5.0:
download: "features/fixtures/app/build/ios/ipa/app-3.0.1.ipa"
upload: "maze_output/failed/**/*"
docker-compose#v3.7.0:
pull: maze-runner
run: maze-runner
command:
- "--app=/app/features/fixtures/app/build/ios/ipa/app-3.0.1.ipa"
- "--farm=bs"
- "--device=IOS_14"
- "--fail-fast"
concurrency: 5
concurrency_group: 'browserstack-app'
concurrency_method: eager
#
# Android
#
- label: Build Android Test Fixture 2.5.0
key: "android-fixture-2-8-1"
timeout_in_minutes: 20
env:
FLUTTER_BIN: "/opt/flutter/2.5.0/bin/flutter"
commands:
- features/scripts/build_android_app.sh
plugins:
artifacts#v1.5.0:
upload:
from: "features/fixtures/app/build/app/outputs/flutter-apk/app-release.apk"
to: "features/fixtures/app/build/app/outputs/flutter-apk/app-release-2.5.0.apk"
- label: Build Android Test Fixture 3.0.1
key: "android-fixture-3-0-1"
timeout_in_minutes: 20
env:
FLUTTER_BIN: "/opt/flutter/3.0.1/bin/flutter"
commands:
- features/scripts/build_android_app.sh
plugins:
artifacts#v1.5.0:
upload:
from: "features/fixtures/app/build/app/outputs/flutter-apk/app-release.apk"
to: "features/fixtures/app/build/app/outputs/flutter-apk/app-release-3.0.1.apk"
- label: 'Android 12 end-to-end tests 2.5.0'
depends_on: "android-fixture-2-8-1"
timeout_in_minutes: 10
env:
FLUTTER_BIN: "/opt/flutter/2.5.0/bin/flutter"
agents:
queue: opensource
plugins:
artifacts#v1.5.0:
download: "features/fixtures/app/build/app/outputs/flutter-apk/app-release-2.5.0.apk"
upload: "maze_output/failed/**/*"
docker-compose#v3.7.0:
pull: maze-runner
run: maze-runner
command:
- "--app=/app/features/fixtures/app/build/app/outputs/flutter-apk/app-release-2.5.0.apk"
- "--farm=bs"
- "--device=ANDROID_12_0"
- "--fail-fast"
concurrency: 5
concurrency_group: 'browserstack-app'
concurrency_method: eager
- label: 'Android 12 end-to-end tests 3.0.1'
depends_on: "android-fixture-3-0-1"
timeout_in_minutes: 10
env:
FLUTTER_BIN: "/opt/flutter/3.0.1/bin/flutter"
agents:
queue: opensource
plugins:
artifacts#v1.5.0:
download: "features/fixtures/app/build/app/outputs/flutter-apk/app-release-3.0.1.apk"
upload: "maze_output/failed/**/*"
docker-compose#v3.7.0:
pull: maze-runner
run: maze-runner
command:
- "--app=/app/features/fixtures/app/build/app/outputs/flutter-apk/app-release-3.0.1.apk"
- "--farm=bs"
- "--device=ANDROID_12_0"
- "--fail-fast"
concurrency: 5
concurrency_group: 'browserstack-app'
concurrency_method: eager