-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbitrise.yml
80 lines (77 loc) · 2.5 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
format_version: "13"
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: flutter
workflows:
primary:
envs:
- TEST: test
opts:
is_expand: true
description: |
Builds project and runs tests.
Next steps:
- Check out [Getting started with Flutter apps](https://devcenter.bitrise.io/en/getting-started/getting-started-with-flutter-apps.html).
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@8: {}
- flutter-installer@0:
inputs:
- is_update: "false"
- restore-dart-cache@1: {}
- flutter-test@1:
inputs:
- project_location: $BITRISE_FLUTTER_PROJECT_LOCATION
- save-dart-cache@1: {}
- deploy-to-bitrise-io@2: {}
meta:
bitrise.io:
machine_type_id: g2-m1-max.10core
_clone:
summary: Clone the target repo
steps:
- git-clone@8:
inputs:
- sparse_directories:
- merge_pr: 'no'
deploy:
description: |
Builds and deploys app using [Deploy to bitrise.io Step](https://devcenter.bitrise.io/en/getting-started/getting-started-with-flutter-apps.html#deploying-a-flutter-app).
If you build for iOS, make sure to set up code signing secrets on Bitrise for a successful build.
Next steps:
- Check out [Getting started with Flutter apps](https://devcenter.bitrise.io/en/getting-started/getting-started-with-flutter-apps.html) for signing and deployment options.
- Check out the [Code signing guide](https://devcenter.bitrise.io/en/code-signing.html) for iOS and Android
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@8: {}
- certificate-and-profile-installer@1: {}
- flutter-installer@0:
inputs:
- is_update: "false"
- flutter-analyze@0:
inputs:
- project_location: $BITRISE_FLUTTER_PROJECT_LOCATION
- flutter-test@1:
inputs:
- project_location: $BITRISE_FLUTTER_PROJECT_LOCATION
- flutter-build@0:
inputs:
- project_location: $BITRISE_FLUTTER_PROJECT_LOCATION
- platform: ios
- ios_output_type: archive
- deploy-to-bitrise-io@2: {}
meta:
bitrise.io:
stack: osx-xcode-15.0.x
machine_type_id: g2-m1-max.10core
app:
envs:
- opts:
is_expand: false
BITRISE_FLUTTER_PROJECT_LOCATION: .
trigger_map:
- push_branch: master
workflow: primary
- pull_request_source_branch: '*'
workflow: primary