forked from bitrise-steplib/step-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbitrise.yml
142 lines (137 loc) · 3.75 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
format_version: 5
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
app:
envs:
- BITRISE_STEP_GIT_CLONE_URL: https://github.com/harness-community/bitrise-sample-plugin.git
- MY_STEPLIB_REPO_FORK_GIT_URL: $MY_STEPLIB_REPO_FORK_GIT_URL
- SIMPLE_REPO_GIT_CLONE_URL: https://github.com/bitrise-samples/android-multiple-test-results-sample.git
- MONO_REPO_GIT_CLONE_URL: https://github.com/bitrise-samples/android-testing.git
workflows:
test:
title: Test simple android project & mono repo projects
before_run:
- audit-this-step
- go-tests
after_run:
- simple-and-mono-repo-in-src-dir
- simple-and-mono-repo-in-root-tmp-dir
simple-and-mono-repo-in-src-dir:
title: Test simple android project & mono repo projects in source dir
steps:
- script:
inputs:
- content: |
#!/bin/bash
rm -rf _tmp
- change-workdir:
title: cd $BITRISE_SOURCE_DIR/_tmp
run_if: true
inputs:
- path: ./_tmp
- is_create_path: true
- script:
inputs:
- content: |
#!/bin/bash
git clone $SIMPLE_REPO_GIT_CLONE_URL .
- install-missing-android-tools:
inputs:
- gradlew_path: ./gradlew
- path::./:
title: Test simple android project
inputs:
- arguments: --info
- change-workdir:
title: cd $BITRISE_SOURCE_DIR/_tmp/mono_repo
run_if: true
inputs:
- path: ./mono_repo
- is_create_path: true
- script:
inputs:
- content: |
#!/bin/bash
git clone $MONO_REPO_GIT_CLONE_URL .
- change-workdir:
title: cd $BITRISE_SOURCE_DIR/_tmp/mono_repo/ui/espresso/IdlingResourceSample
run_if: true
inputs:
- path: ./ui/espresso/IdlingResourceSample
- is_create_path: true
- path::./:
title: Test monorepo
- path::./:
title: Test monorepo with module and variant set
inputs:
- module: app
- variant: Debug
simple-and-mono-repo-in-root-tmp-dir:
title: Test simple android project & mono repo projects in /tmp dir
steps:
- script:
inputs:
- content: |
#!/bin/bash
rm -rf /tmp/_tmp
- change-workdir:
title: cd /tmp/_tmp
run_if: true
inputs:
- path: /tmp/_tmp
- is_create_path: true
- script:
inputs:
- content: |
#!/bin/bash
git clone $SIMPLE_REPO_GIT_CLONE_URL .
- install-missing-android-tools:
inputs:
- gradlew_path: ./gradlew
- path::./:
title: Test simple repo
- change-workdir:
title: cd /tmp
run_if: true
inputs:
- path: /tmp
- is_create_path: true
- script:
inputs:
- content: |
#!/bin/bash
rm -rf /tmp/_tmp
- change-workdir:
title: cd /tmp/_tmp
run_if: true
inputs:
- path: /tmp/_tmp
- is_create_path: true
- script:
inputs:
- content: |
#!/bin/bash
git clone $MONO_REPO_GIT_CLONE_URL .
- change-workdir:
title: cd /tmp/ui/espresso/IdlingResourceSample
run_if: true
inputs:
- path: ./ui/espresso/IdlingResourceSample
- is_create_path: true
- path::./:
title: Test monorepo
go-tests:
steps:
- go-list:
- golint:
- errcheck:
- go-test:
# ----------------------------------------------------------------
# --- workflows to Share this step into a Step Library
audit-this-step:
steps:
- script:
inputs:
- content: |-
#!/bin/bash
set -ex
stepman audit --step-yml ./step.yml