generated from wasabeef/flutter-architecture-blueprints
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
codemagic.yaml
77 lines (68 loc) · 2.31 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
# Automatically generated on 2020-08-07 UTC from https://codemagic.io/app/5f2c1b6a8ff73d000f7bc1e1/settings
# Note that this configuration is not an exact match to UI settings. Review and adjust as necessary.
workflows:
main-merge:
name: Main Workflow
max_build_duration: 60
environment:
vars:
FCI_FLUTTER_SCHEME: Production
ANDROID_SDK_VERSION: 30
CODECOV_TOKEN: Encrypted(Z0FBQUFBQmZMOXV6aEw2a0VyRWE0VTljem1XeG95MVFQRm5YNUhUaU94SE1FcU5pdDRya1ZnM29DR2FQOGpJS1dydm14UkU4eFE4TzdReDZZWlIxU1lEcU13dm8zRHdQd211R3pTNGFIeHJwUXE3N3VxTk1iMndYLWFnSE1JMHA2TndHVkw3MWRmbU0=)
flutter: beta
xcode: latest
cocoapods: default
cache:
cache_paths:
- $FLUTTER_ROOT/.pub-cache
- $FCI_BUILD_DIR/ios/Pods
- $FCI_BUILD_DIR/android/.gradle
triggering:
events:
- push
- pull_request
- tag
branch_patterns:
- pattern: main
include: true
source: true
scripts:
- name: Setup local properties
script: |
# set up local properties
echo "flutter.sdk=$HOME/programs/flutter" > "$FCI_BUILD_DIR/android/local.properties"
- name: Get flutter dependencies
script: |
make setup
export PATH="$PATH":"$HOME/.pub-cache/bin"
make dependencies
- name: Check for any formatting and statically analyze the code
script: make format-analyze
- name: Flutter Unit test
script: make unit-test
- name: Codecov upload
script: make codecov
- name: Build
script: |
#!/bin/sh
set -e # exit on first failed commandset
set -x # print all executed commands to the log
/usr/bin/plutil -replace CFBundleIdentifier -string jp.wasabeef.app ios/Runner/Info.plist
make build-android-prd
make build-ios-prd
artifacts:
- build/**/outputs/**/*.apk
- build/**/outputs/**/*.aab
- build/**/outputs/**/mapping.txt
- build/ios/ipa/*.ipa
- /tmp/xcodebuild_logs/*.log
- flutter_drive.log
publishing:
slack:
channel: '#develop'
notify_on_build_start: false
github_releases:
prerelease: false
artifact_patterns:
- 'app-production-release.apk'
- 'Runner.ipa'