This repository has been archived by the owner on Jun 9, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 261
/
bitrise.yml
113 lines (111 loc) · 3.19 KB
/
bitrise.yml
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
---
format_version: '8'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: flutter
trigger_map:
- push_branch: main
workflow: main-build
- pull_request_source_branch: "*"
workflow: pull-request-build
workflows:
main-build:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@4: {}
- cache-pull@2: {}
- script@1:
inputs:
- content: |-
#!/usr/bin/env bash
make setup
export PATH=$PATH:$HOME/.pub-cache/bin
envman add --key PATH --value $PATH
make dependencies
title: Get flutter dependencies
- script@1:
inputs:
- content: |-
#!/usr/bin/env bash
make format-analyze
title: Check for any formatting and statically analyze the code
- script@1:
inputs:
- content: |-
#!/usr/bin/env bash
make unit-test
title: Run widget tests for our flutter project
inputs:
- CODECOV_TOKEN: "$CODECOV_TOKEN"
- script@1:
inputs:
- content: |-
#!/usr/bin/env bash
make build-android-prd
make build-ios-prd
title: Build ipa and apk
- deploy-to-bitrise-io@1: {}
- cache-push@2: {}
- slack@3:
inputs:
- webhook_url: "$SLACK_WEBHOOK_URL"
pull-request-build:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@4: {}
- cache-pull@2: { }
- script@1:
inputs:
- content: |-
#!/usr/bin/env bash
make setup
export PATH=$PATH:$HOME/.pub-cache/bin
envman add --key PATH --value $PATH
make dependencies
title: Get flutter dependencies
- script@1:
inputs:
- content: |-
#!/usr/bin/env bash
make format-analyze
title: Check for any formatting and statically analyze the code
- script@1:
inputs:
- content: |-
#!/usr/bin/env bash
make unit-test
title: Run widget tests for our flutter project
inputs:
- CODECOV_TOKEN: "$CODECOV_TOKEN"
- script@1:
inputs:
- content: |-
#!/usr/bin/env bash
make build-android-prd
make build-ios-prd
title: Build ipa and apk
- deploy-to-bitrise-io@1: {}
- cache-push@2: {}
- slack@3:
inputs:
- webhook_url: "$SLACK_WEBHOOK_URL"
app:
envs:
- opts:
is_expand: false
BITRISE_FLUTTER_PROJECT_LOCATION: "."
- opts:
is_expand: false
BITRISE_PROJECT_PATH: ios/Runner.xcworkspace
- opts:
is_expand: false
BITRISE_SCHEME: Production
- opts:
is_expand: false
BITRISE_EXPORT_METHOD: production
- opts:
is_expand: false
ANDROID_SDK_VERSION: 29