-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodemagic.yaml
More file actions
99 lines (89 loc) · 2.18 KB
/
codemagic.yaml
File metadata and controls
99 lines (89 loc) · 2.18 KB
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
workflows:
run-tests-workflow:
name: Run Tests Workflow
max_build_duration: 70
instance_type: mac_mini_m1
environment:
flutter: stable
groups:
- MAPBOX_SECRETS
triggering:
events:
- pull_request
- push
branch_patterns:
- pattern: "master"
include: true
source: false
- pattern: "dev"
include: true
source: false
scripts:
- name: Create .env file
script: |
echo "MAPBOX_PUBLIC_TOKEN=$MAPBOX_PUBLIC_TOKEN" > .env
echo "MAPBOX_SECRET_TOKEN=$MAPBOX_SECRET_TOKEN" >> .env
- name: Get dependencies
script: |
flutter pub get
- name: Run tests
script: |
flutter test
publishing:
email:
recipients:
- engelmmanuel@gmail.com
notify:
success: true
failure: true
slack:
channel: '#publish'
notify_on_build_start: true
notify:
success: true
failure: true
publish-to-slack-channel-workflow:
name: Publish to Slack Channel Workflow
max_build_duration: 90
instance_type: mac_mini_m1
environment:
flutter: stable
groups:
- MAPBOX_SECRETS
triggering:
events:
- pull_request
- push
branch_patterns:
- pattern: "master"
include: true
source: false
- pattern: "dev"
include: true
source: false
scripts:
- name: Create .env file
script: |
echo "MAPBOX_PUBLIC_TOKEN=$MAPBOX_PUBLIC_TOKEN" > .env
echo "MAPBOX_SECRET_TOKEN=$MAPBOX_SECRET_TOKEN" >> .env
- name: Get dependencies
script: |
flutter pub get
- name: Build debug apk
script: |
flutter build apk --debug
artifacts:
- build/app/outputs/flutter-apk/app-debug.apk
publishing:
email:
recipients:
- engelmmanuel@gmail.com
notify:
success: true
failure: true
slack:
channel: '#publish'
notify_on_build_start: true
notify:
success: true
failure: true