-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbitrise.yml
52 lines (49 loc) · 1.36 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
---
format_version: 1.1.0
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
app:
envs:
- default_apk_dir: "./app/build/outputs/apk"
- default_apk_name: app-debug.apk
trigger_map:
- pattern: "*"
is_pull_request_allowed: true
workflow: primary
workflows:
generate-keystore:
steps:
- script:
inputs:
- content: |-
#!/bin/bash
set -e
set -x
mkdir -p ./_tmp
echo y | keytool -genkeypair -dname "cn=Mark Jones, ou=JavaSoft, o=Sun, c=US" \
-alias bitrise-android-test -keypass bitrise-android-keypass-1234 -keystore ./_tmp/android.keystore \
-storepass bitrise-android-keystore-1234 -validity 9999
primary:
steps:
run_if: .IsCI
title: gradlew
inputs:
- content: |-
#!/bin/bash
set -e
set -v
bash ./gradlew assemble
title: gradle assemble & move to DEPLOY dir
inputs:
- content: |-
#!/bin/bash
set -e
set -v
gradle assemble
mv "${default_apk_dir}/${default_apk_name}" "${BITRISE_DEPLOY_DIR}/${default_apk_name}"
run_if: .IsCI
inputs:
- is_compress: 'false'