/
bitrise.yml
97 lines (91 loc) · 2.69 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
format_version: "8"
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
app:
envs:
- SAMPLE_APP_URL: https://github.com/bitrise-io/sample-apps-xamarin-cross-platform.git
- BITRISE_PROJECT_PATH: Multiplatform.sln
- BITRISE_XAMARIN_CONFIGURATION: Release
- BITRISE_XAMARIN_PLATFORM: Any CPU
workflows:
# ----------------------------------------------------------------
# --- workflow to Step Test
ci:
before_run:
- audit-this-step
steps:
- go-list:
- golint:
- errcheck:
- go-test:
- script:
inputs:
- content: |-
#!/bin/bash
set -ex
rm -rf ./_tmp
- change-workdir:
title: Switch working dir to test / _tmp dir
run_if: true
inputs:
- path: ./_tmp
- is_create_path: true
- script:
inputs:
- content: |-
#!/bin/bash
git clone -b master $SAMPLE_APP_URL .
# Using avd-manager from master as it contains on 2019-11-08 unreleased fixes
- git::https://github.com/bitrise-steplib/steps-avd-manager@master:
title: Step Test
inputs:
- version: 29
- certificate-and-profile-installer:
- nuget-restore:
- wait-for-android-emulator:
- path::./:
title: Step test
inputs:
- test_to_run: Multiplatform.UItest.Tests(Android)
- build_tool: msbuild
- script:
title: Step output test
is_always_run: true
inputs:
- content: |-
echo "BITRISE_XAMARIN_TEST_RESULT: $BITRISE_XAMARIN_TEST_RESULT"
echo "BITRISE_XAMARIN_TEST_FULL_RESULTS_TEXT: $BITRISE_XAMARIN_TEST_FULL_RESULTS_TEXT"
- script:
is_always_run: true
inputs:
- content:
#!/bin/bash
set -ex
adb devices | grep emulator | cut -f1 | while read line; do adb -s $line emu kill; done
# ----------------------------------------------------------------
# --- Utility workflows
godeps-update:
title: Godeps update
description: |
Used for updating bitrise dependencies with godep
steps:
- script:
title: Dependency update
inputs:
- content: |
#!/bin/bash
set -ex
go get -u -v github.com/tools/godep
rm -rf ./Godeps
rm -rf ./vendor
go get -t -d ./...
godep save ./...
# ----------------------------------------------------------------
# --- 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