-
Notifications
You must be signed in to change notification settings - Fork 5
/
bitrise.yml
85 lines (82 loc) · 2.68 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
app:
envs:
- PROJECT_LOCATION: .
opts:
is_expand: false
- MODULE: app
opts:
is_expand: false
- VARIANT: debug
opts:
is_expand: false
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
format_version: "8"
meta:
bitrise.io:
stack: linux-docker-android-22.04
project_type: android
trigger_map:
- push_branch: '*'
workflow: primary
- pull_request_source_branch: '*'
workflow: primary
workflows:
primary:
steps:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@5: {}
- cache-pull@2:
run_if: false
- script@1:
inputs:
- content: |-
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
make install-java-11
title: Install Java 11
inputs:
- gradlew_path: $PROJECT_LOCATION/gradlew
- script@1:
inputs:
- content: |-
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
# write your script here
./gradlew detekt
title: Detekt Lint
- script@1:
inputs:
- content: |-
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
make testDebug
title: Run Unit Tests
- deploy-to-bitrise-io@1: {}
- cache-push@2: {}
update_bitriseyml:
steps:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@4: {}
- script@1:
inputs:
- content: |-
# fail if any commands fails
set -e
# debug log
set -x
chmod +x update-bitrise.sh
./update-bitrise.sh $BITRISE_APP_SLUG $AUTHORIZATION_TOKEN $BITRISE_BUILD_NUMBER
title: Add most recent bitrise.yml
- deploy-to-bitrise-io@1: {}