-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodemagic.yaml
36 lines (36 loc) · 955 Bytes
/
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
workflows:
my-workflow:
name: Default Workflow
labels:
- QA
- ${TENANT_NAME}
instance_type: mac_mini_m1
max_build_duration: 60
environment:
flutter: stable
xcode: latest
cache:
cache_paths:
- ~/.pub-cache
triggering:
events:
- push
branch_patterns:
- pattern: '*'
include: true
source: true
cancel_previous_builds: false
scripts:
- name: Unit tests
script: |
mkdir -p test-results
flutter test --machine > test-results/flutter.json
test_report: test-results/flutter.json
- name: Integration tests
script: |
mkdir -p test-results
flutter -d emulator-5554 test --machine > test-results/flutter.json integration_test
# for iOS use: -d iPhone
test_report: test-results/flutter.json
artifacts:
- build/**/outputs/bundle/**/*.aab