This repository has been archived by the owner on Feb 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitrise.yml
87 lines (80 loc) · 2.58 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
---
format_version: '11'
default_step_lib_source: 'https://github.com/bitrise-io/bitrise-steplib.git'
project_type: android
workflows:
deploy:
description: >
Deploys app using [Deploy to bitrise.io
Step](https://devcenter.bitrise.io/en/getting-started/getting-started-with-android-apps.html#deploying-an-android-app-to-bitrise-io-53056).
Next steps:
- Check out [Getting started with Android
apps](https://devcenter.bitrise.io/en/getting-started/getting-started-with-android-apps.html)
for signing and deployment options.
- [Set up code signing with *Android Sign*
Step](https://devcenter.bitrise.io/en/code-signing/android-code-signing/android-code-signing-using-the-android-sign-step.html).
steps:
- git-clone@7: {}
- cache-pull@2: {}
- install-missing-android-tools@3:
inputs:
- gradlew_path: $PROJECT_LOCATION/gradlew
- change-android-versioncode-and-versionname@1:
inputs:
- build_gradle_path: $PROJECT_LOCATION/$MODULE/build.gradle
- android-lint@0:
inputs:
- project_location: $PROJECT_LOCATION
- variant: $VARIANT
- android-unit-test@1:
inputs:
- project_location: $PROJECT_LOCATION
- variant: $VARIANT
- android-build@1:
inputs:
- project_location: $PROJECT_LOCATION
- module: $MODULE
- variant: $VARIANT
- sign-apk@1:
run_if: '{{getenv "BITRISEIO_ANDROID_KEYSTORE_URL" | ne ""}}'
- cache-push@2: {}
- deploy-to-bitrise-io@2: {}
primary:
description: >
Runs tests.
Next steps:
- Check out [Getting started with Android
apps](https://devcenter.bitrise.io/en/getting-started/getting-started-with-android-apps.html).
steps:
- git-clone@7: {}
- cache-pull@2: {}
- install-missing-android-tools@3:
inputs:
- gradlew_path: $PROJECT_LOCATION/gradlew
- android-unit-test@1:
inputs:
- project_location: $PROJECT_LOCATION
- variant: $VARIANT
- cache-push@2: {}
- deploy-to-bitrise-io@2: {}
meta:
bitrise.io:
stack: linux-docker-android-20.04
machine_type_id: standard
app:
envs:
- opts:
is_expand: false
PROJECT_LOCATION: .
- opts:
is_expand: false
MODULE: app
- opts:
is_expand: false
VARIANT: Debug
trigger_map:
- push_branch: main
workflow: primary
- pull_request_source_branch: '*'
workflow: primary
pull_request_target_branch: main*