forked from Betterment/alchemist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodemagic.yaml
39 lines (39 loc) · 1.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
workflows:
default-workflow:
name: Test and Build Workflow
max_build_duration: 120
instance_type: mac_mini_m2
environment:
ios_signing:
distribution_type: app_store
bundle_identifier: com.betterment.alchemist-example
xcode: 15.4
scripts:
- name: Get Flutter packages
script: |
flutter packages pub get
- name: Flutter format
script: |
dart format --set-exit-if-changed .
- name: Flutter unit tests
script: |
mkdir -p test-results
flutter test --update-goldens --no-pub --coverage --test-randomize-ordering-seed=random --machine > test-results/flutter.json
test_report: test-results/flutter.json
- name: Setup code signing settings
script: |
xcode-project use-profiles
- name: Build iOS project
working_directory: example
script: |
flutter build ipa --release \
--export-options-plist=/Users/builder/export_options.plist
- name: Build Android project
working_directory: example
script: |
flutter build appbundle --release
artifacts:
- $CM_BUILD_DIR/example/build/ios/ipa/*.ipa
- $CM_BUILD_DIR/example/build/**/outputs/**/*.aab
- /tmp/xcodebuild_logs/*.log
- flutter_drive.log