generated from huskyjp/flutter-architecture-blueprints
-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
bitrise.yml
101 lines (101 loc) · 3.3 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
---
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: {}
- script@1:
title: Do anything with Script step
- flutter-installer@0:
inputs:
- version: beta
- cache-pull@2: {}
- flutter-analyze@0.2:
inputs:
- project_location: "$BITRISE_FLUTTER_PROJECT_LOCATION"
- flutter-test@0:
inputs:
- additional_params: "--coverage-path=./coverage/lcov.info"
- generate_code_coverage_files: 'yes'
- project_location: "$BITRISE_FLUTTER_PROJECT_LOCATION"
- codecov@1:
inputs:
- CODECOV_TOKEN: "$CODECOV_TOKEN"
- flutter-build@0:
inputs:
- ios_additional_params: "--release --no-codesign --flavor production --dart-define=FLAVOR=production
--target lib/main.dart"
- is_debug_mode: 'true'
- ios_output_pattern: |-
*build/ios/iphoneos/*.app
*build/ios/iphoneos/*.ipa
- android_additional_params: "--release --flavor production --dart-define=FLAVOR=production
--target lib/main.dart"
- 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: {}
- script@1:
title: Do anything with Script step
- flutter-installer@0:
inputs:
- version: beta
- cache-pull@2: {}
- flutter-analyze@0.2:
inputs:
- project_location: "$BITRISE_FLUTTER_PROJECT_LOCATION"
- flutter-test@0:
inputs:
- additional_params: "--coverage-path=./coverage/lcov.info"
- generate_code_coverage_files: 'yes'
- project_location: "$BITRISE_FLUTTER_PROJECT_LOCATION"
- codecov@1:
inputs:
- CODECOV_TOKEN: "$CODECOV_TOKEN"
- flutter-build@0:
inputs:
- ios_additional_params: "--no-codesign --flavor development --dart-define=FLAVOR=development
--target lib/main.dart"
- is_debug_mode: 'true'
- ios_output_pattern: |-
*build/ios/iphoneos/*.app
*build/ios/iphoneos/*.ipa
- android_additional_params: "--flavor development --dart-define=FLAVOR=development
--target lib/main.dart"
- 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