-
Notifications
You must be signed in to change notification settings - Fork 1
/
codemagic.yaml
235 lines (226 loc) · 21.2 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
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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
# Automatically generated on 2021-06-07 UTC from https://codemagic.io/app/60be1666362aac9148b3b88f/settings
# Note that this configuration is not an exact match to UI settings. Review and adjust as necessary.
workflows:
master:
name: Prod
max_build_duration: 60
environment:
vars:
APP_CENTER_PROJECT: flutter_mobx_template
APP_CENTER_USERNAME_ORGANIZATION: morellitecinfo-gmail.com
APP_CENTER_TOKEN: Encrypted(Z0FBQUFBQmd2OEo0S3JMVkZLcFFzUGRPSXFoZGZ2WHc0Tm83enJIeWNib1g2elRWUlVhaU85bFdES1JCOXBUMDN2b01TeHB3UXlabE43VURnVTVXZG40OGQ5ZTgxeV8yWUZKWVlmbjJCbzdUbl9tTXpwakpxWjhlUmFVcTVpX19PeU1qMXRSY2FsMjM=)
FCI_KEYSTORE_PATH: /tmp/keystore.keystore
FCI_KEYSTORE: Encrypted(Z0FBQUFBQmd2b0VmSy1yUHplcVItMXVqVnB6NnRxS2w1NlVtZEQ4RENGSEhSdFRvY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PQ==)
FCI_KEY_PASSWORD: Encrypted(Z0FBQUFBQmd2b0VmZFlBVnZhTk9aeGFYRE10ZFBYVXVVclZfRWNPYzFrT2puY3NWRUR3LXNlMm1qUlZRbkotczBDVEx1dHF2S1diM3pzdzhIRHpvYnVkRG42U0R4bnQ3Qmc9PQ==)
FCI_KEY_ALIAS: Encrypted(Z0FBQUFBQmd2b0VmUW1sRjd3UWJJRlpMc0UyQzRsa3V3YWxMQ2pYeTdpVF9SdHBETEZ5TjRmTjh2NzM1bEYxM2JUVVQ1cTNIcGx2VHl0SnRmaVZ5TWVfSk9fSTZVX3RaWlE9PQ==)
flutter: 2.2.0
xcode: latest
cocoapods: default
cache:
cache_paths:
- $FLUTTER_ROOT/.pub-cache
- $FCI_BUILD_DIR/ios/Pods
- $FCI_BUILD_DIR/android/.gradle
triggering:
events:
- push
branch_patterns:
- pattern: master
include: true
source: true
scripts:
- |
# set up key.properties
echo $FCI_KEYSTORE | base64 --decode > $FCI_KEYSTORE_PATH
cat >> "$FCI_BUILD_DIR/android/key.properties" <<EOF
storePassword=$FCI_KEYSTORE_PASSWORD
keyPassword=$FCI_KEY_PASSWORD
keyAlias=$FCI_KEY_ALIAS
storeFile=/tmp/keystore.keystore
EOF
- |
# set up local properties
echo "flutter.sdk=$HOME/programs/flutter" > "$FCI_BUILD_DIR/android/local.properties"
- flutter packages pub get
- flutter analyze
- flutter test
- flutter build apk --release --flavor prod -t lib/main_prod.dart
# - find . -name "Podfile" -execdir pod install \;
# - flutter build ios --release --no-codesign
artifacts:
- build/**/outputs/**/*.apk
- build/**/outputs/**/*.aab
- build/**/outputs/**/mapping.txt
- build/ios/ipa/*.ipa
- /tmp/xcodebuild_logs/*.log
- flutter_drive.log
publishing:
email:
recipients:
scripts:
- |
#!/usr/bin/env zsh
echo 'Installing App Center CLI tools'
npm install -g appcenter-cli
echo "Find build artifacts"
apkPath=$(find build -name "*prod-release.apk" | head -1)
echo "Found apk at $apkPath"
if [[ -z ${apkPath} ]]
then
echo "No apks were found, skip publishing to App Center"
else
echo "Publishing $apkPath to App Center"
appcenter distribute release \
--group 'Collaborators Prod' \
--file "${apkPath}" \
--release-notes 'App submission via Codemagic' \
--app $APP_CENTER_USERNAME_ORGANIZATION/$APP_CENTER_PROJECT \
--token "${APP_CENTER_TOKEN}" \
--quiet
fi
# echo "Find build artifacts"
# ipaPath=$(find ~/ipas -name "*prod-release.ipa" | head -1)
# echo "Found ipa at $ipaPath"
# if [[ -z ${ipaPath} ]]
# then
# echo "No ipas were found, skip publishing to App Center"
# else
# echo "Publishing $ipaPath to App Center"
# appcenter distribute release \
# --group 'Collaborators Prod' \
# --file "${ipaPath}" \
# --release-notes 'App submission via Codemagic' \
# --app $APP_CENTER_USERNAME_ORGANIZATION/$APP_CENTER_PROJECT \
# --token "${APP_CENTER_TOKEN}" \
# --quiet
# fi
qa:
name: QA
max_build_duration: 60
environment:
vars:
APP_CENTER_PROJECT: flutter_mobx_template
APP_CENTER_USERNAME_ORGANIZATION: morellitecinfo-gmail.com
APP_CENTER_TOKEN: Encrypted(Z0FBQUFBQmd2OEo0S3JMVkZLcFFzUGRPSXFoZGZ2WHc0Tm83enJIeWNib1g2elRWUlVhaU85bFdES1JCOXBUMDN2b01TeHB3UXlabE43VURnVTVXZG40OGQ5ZTgxeV8yWUZKWVlmbjJCbzdUbl9tTXpwakpxWjhlUmFVcTVpX19PeU1qMXRSY2FsMjM=)
FCI_KEYSTORE_PATH: /tmp/keystore.keystore
FCI_KEYSTORE: Encrypted(Z0FBQUFBQmd2b0VmSy1yUHplcVItMXVqVnB6NnRxS2w1NlVtZEQ4RENGSEhSdFRvYjlWcGhWR09kZWxGYnJnUEQ4TXB6d0JQak5qWHpOTW1yV2N3RmFCWG1Ob2NDVlVpX293N1NxaElRMG42d2p5WkJxNk8tem5DeTk4UGlQOEJ0dXkya01obC1vWWtYOFBsXzZxSkV4LU44UzhuUWpFRFhjMGI2anNzMUtCdkRRMl9ud1VkdFVWb0lEVUNjUF9XYWhQ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BQUFBQmd2b0VmUW1sRjd3UWJJRlpMc0UyQzRsa3V3YWxMQ2pYeTdpVF9SdHBETEZ5TjRmTjh2NzM1bEYxM2JUVVQ1cTNIcGx2VHl0SnRmaVZ5TWVfSk9fSTZVX3RaWlE9PQ==)
flutter: 2.2.0
xcode: latest
cocoapods: default
cache:
cache_paths:
- $FLUTTER_ROOT/.pub-cache
- $FCI_BUILD_DIR/ios/Pods
- $FCI_BUILD_DIR/android/.gradle
triggering:
events:
- push
branch_patterns:
- pattern: 'develop'
include: true
source: true
scripts:
- |
# set up key.properties
echo $FCI_KEYSTORE | base64 --decode > $FCI_KEYSTORE_PATH
cat >> "$FCI_BUILD_DIR/android/key.properties" <<EOF
storePassword=$FCI_KEYSTORE_PASSWORD
keyPassword=$FCI_KEY_PASSWORD
keyAlias=$FCI_KEY_ALIAS
storeFile=/tmp/keystore.keystore
EOF
- |
# set up local properties
echo "flutter.sdk=$HOME/programs/flutter" > "$FCI_BUILD_DIR/android/local.properties"
- flutter packages pub get
- flutter analyze
- flutter test
- flutter build apk --release --flavor qa -t lib/main_qa.dart
# - find . -name "Podfile" -execdir pod install \;
# - flutter build ios --release --no-codesign
artifacts:
- build/**/outputs/**/*.apk
- build/**/outputs/**/*.aab
- build/**/outputs/**/mapping.txt
- build/ios/ipa/*.ipa
- /tmp/xcodebuild_logs/*.log
- flutter_drive.log
publishing:
email:
recipients:
scripts:
- |
#!/usr/bin/env zsh
echo 'Installing App Center CLI tools'
npm install -g appcenter-cli
echo "Find build artifacts"
apkPath=$(find build -name "*qa-release.apk" | head -1)
echo "Found apk at $apkPath"
if [[ -z ${apkPath} ]]
then
echo "No apks were found, skip publishing to App Center"
else
echo "Publishing $apkPath to App Center"
appcenter distribute release \
--group 'Collaborators QA' \
--file "${apkPath}" \
--release-notes 'App submission via Codemagic' \
--app $APP_CENTER_USERNAME_ORGANIZATION/$APP_CENTER_PROJECT \
--token "${APP_CENTER_TOKEN}" \
--quiet
fi
# echo "Find build artifacts"
# ipaPath=$(find ~/ipas -name "*qa-release.ipa" | head -1)
# echo "Found ipa at $ipaPath"
# if [[ -z ${ipaPath} ]]
# then
# echo "No ipas were found, skip publishing to App Center"
# else
# echo "Publishing $ipaPath to App Center"
# appcenter distribute release \
# --group 'Collaborators QA' \
# --file "${ipaPath}" \
# --release-notes 'App submission via Codemagic' \
# --app $APP_CENTER_USERNAME_ORGANIZATION/$APP_CENTER_PROJECT \
# --token "${APP_CENTER_TOKEN}" \
# --quiet
# fi
tests:
name: tests
max_build_duration: 60
environment:
vars:
APP_CENTER_PROJECT: flutter_mobx_template
APP_CENTER_USERNAME_ORGANIZATION: morellitecinfo-gmail.com
APP_CENTER_TOKEN: Encrypted(Z0FBQUFBQmd4MHlSVE5pMTdFWXMycjJEU3FiWGROZnJ3MjdRMUVXLVIyY3htQ2tOeHFUU2lKNGk2cS1VV21BWTh5MzNyd3JTSWJSRHJKejNxa1FHQ1NObWtxRDRDWkh0SWs3OVhpYU1yZHVpS01JQ3EyUjkxYUdyQW1BM3ZZY2xIQ05TQUdFVFdRWXo=)
flutter: 2.2.0
xcode: latest
cocoapods: default
cache:
cache_paths:
- $FLUTTER_ROOT/.pub-cache
- $FCI_BUILD_DIR/ios/Pods
- $FCI_BUILD_DIR/android/.gradle
triggering:
events:
- pull_request
branch_patterns:
- pattern: '*'
include: true
source: true
scripts:
- flutter packages pub get
- flutter analyze
- flutter test
artifacts:
- flutter_drive.log
publishing:
email:
recipients: