-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathbitrise.yml
90 lines (90 loc) · 2.32 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
---
format_version: '11'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: android
workflows:
health:
steps:
- build-router-start@0:
inputs:
- access_token: "$HEALTH_CHECKS_ACCESS_TOKEN"
- verbose: 'yes'
- workflows: |-
health-tests
health-compile
health-linter
- github-status@2:
inputs:
- status_identifier: Bitrise Health Checks
- auth_token: "$GITHUB_STATUS_KEY"
health-compile:
before_run:
- setup
steps:
- android-build@0:
inputs:
- variant: debug
- github-status@2:
inputs:
- status_identifier: Compiler Check
- auth_token: "$GITHUB_STATUS_KEY"
health-linter:
before_run:
- setup
steps:
- gradle-runner@2:
inputs:
- gradlew_path: "$PROJECT_LOCATION/gradlew"
- gradle_task: spotlessKotlinCheck
- github-status@2:
inputs:
- status_identifier: Linter Check
- auth_token: "$GITHUB_STATUS_KEY"
health-tests:
before_run:
- setup
after_run:
- teardown
steps:
- android-unit-test@1.0:
inputs:
- arguments: '":komposable-architecture:test"'
- is_debug: 'true'
- variant: debug
- github-status@2:
inputs:
- status_identifier: Unit Tests
- auth_token: "$GITHUB_STATUS_KEY"
setup:
steps:
- script@1:
inputs:
- content: "sudo update-alternatives --set javac /usr/lib/jvm/java-11-openjdk-amd64/bin/javac\nsudo
update-alternatives --set java /usr/lib/jvm/java-11-openjdk-amd64/bin/java\n
\ \nexport JAVA_HOME='/usr/lib/jvm/java-11-openjdk-amd64'\nenvman add
--key JAVA_HOME --value '/usr/lib/jvm/java-11-openjdk-amd64'"
- activate-ssh-key@4: {}
- git-clone@6: {}
- install-missing-android-tools@2:
inputs:
- gradlew_path: "$PROJECT_LOCATION/gradlew"
teardown:
steps:
- deploy-to-bitrise-io@1: {}
app:
envs:
- opts:
is_expand: false
PROJECT_LOCATION: "."
- opts:
is_expand: false
MODULE: todo-sample
- opts:
is_expand: false
VARIANT: debug
trigger_map:
- push_branch: main
workflow: health
- pull_request_source_branch: "*"
pull_request_target_branch: main
workflow: health