-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbitrise.yml
More file actions
102 lines (96 loc) · 2.74 KB
/
bitrise.yml
File metadata and controls
102 lines (96 loc) · 2.74 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
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:
- audit-this-step
- go-tests
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
- script:
title: clone sample app
inputs:
- content: git clone -b master $SAMPLE_APP_REPOSITORY_URL ./
- 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
go-tests:
steps:
- go-list:
- golint:
- errcheck:
- go-test:
# ----------------------------------------------------------------
# --- Utility workflows
dep-update:
steps:
- script:
title: dep update
inputs:
- content: |-
#!/bin/bash
set -ex
go get -u -v github.com/golang/dep/cmd/dep
dep ensure -v
dep ensure -v -update
# ----------------------------------------------------------------
# --- workflows to Share this step into a Step Library
audit-this-step:
steps:
- script:
title: audit step.yml
inputs:
- content: stepman audit --step-yml ./step.yml