-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathbitrise.yml
More file actions
81 lines (76 loc) · 2.33 KB
/
bitrise.yml
File metadata and controls
81 lines (76 loc) · 2.33 KB
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
format_version: 5
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
app:
envs:
- SAMPLE_APP_REPOSITORY_URL: https://github.com/bitrise-samples/sample-apps-android-abi-split.git
- GRADLE_TASK: assembleRelease
- GRADLEW_PATH: ./gradlew
workflows:
test:
before_run:
- check
steps:
- script:
title: remove _tmp dir
inputs:
- content: rm -rf ./_tmp
- change-workdir:
title: cd to _tmp dir
run_if: true
inputs:
- path: ./_tmp
- is_create_path: true
- git::https://github.com/bitrise-steplib/bitrise-step-simple-git-clone.git:
title: Clone test project
inputs:
- clone_into_dir: $BITRISE_SOURCE_DIR
- repository_url: $SAMPLE_APP_REPOSITORY_URL
- branch: master
- path::./:
title: step test
inputs:
- build_gradle_path: ./app/build.gradle
- new_version_name: "2.0"
- new_version_code: "2"
- version_code_offset: ""
- script:
title: output test
is_always_run: true
inputs:
- content: |-
#!/usr/bin/env bash
set -x
if [[ "${ANDROID_VERSION_NAME}" != '2.0' ]]; then
echo 'Invalid ANDROID_VERSION_NAME, should be: 2.0'
exit 1
elif (( ${ANDROID_VERSION_CODE} != 2 )); then
echo "Invalid ANDROID_VERSION_CODE, should be: 2"
exit 1
fi
- path::./:
title: step test - offset
inputs:
- build_gradle_path: ./app/build.gradle
- new_version_name: "4.0"
- new_version_code: "3"
- version_code_offset: "1"
- script:
title: output test
is_always_run: true
inputs:
- content: |-
#!/usr/bin/env bash
set -x
if [[ "${ANDROID_VERSION_NAME}" != '4.0' ]]; then
echo 'Invalid ANDROID_VERSION_NAME, should be: 4.0'
exit 1
elif (( ${ANDROID_VERSION_CODE} != 4 )); then
echo "Invalid ANDROID_VERSION_CODE, should be: 4"
exit 1
fi
check:
steps:
- git::https://github.com/bitrise-steplib/steps-check.git: { }
generate_readme:
steps:
- git::https://github.com/bitrise-steplib/steps-readme-generator.git@main: { }