-
Notifications
You must be signed in to change notification settings - Fork 12
/
bitrise.yml
executable file
·103 lines (96 loc) · 2.7 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
format_version: 5
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
app:
envs:
- SAMPLE_APP_URL: https://github.com/bitrise-io/sample-apps-ios-simple-objc.git
- SAMPLE_APP_BRANCH: UI_test
workflows:
test:
before_run:
- audit-this-step
- go-tests
steps:
- script:
inputs:
- content: |-
#!/bin/bash
set -ex
rm -rf "$BITRISE_SOURCE_DIR/_tmp"
mkdir -p "$BITRISE_SOURCE_DIR/_tmp"
- change-workdir:
title: Switch working dir to _tmp dir
run_if: true
inputs:
- path: "$BITRISE_SOURCE_DIR/_tmp"
- is_create_path: true
- script:
inputs:
- content: |-
#!/bin/bash
set -ev
git clone $SAMPLE_APP_URL .
git checkout $SAMPLE_APP_BRANCH
- certificate-and-profile-installer:
- xcode-build-for-test:
inputs:
- project_path: ./ios-simple-objc/ios-simple-objc.xcodeproj
- scheme: ios-simple-objc
- output_tool: xcodebuild
- path::./:
inputs:
- download_test_results: "true"
- script:
title: Output check
inputs:
- content: |-
#!/bin/bash
set -e
if [[ -z "$VDTESTING_DOWNLOADED_FILES_DIR" ]] ; then
echo "VDTESTING_DOWNLOADED_FILES_DIR should not be empty"
exit 1
else
echo "VDTESTING_DOWNLOADED_FILES_DIR: $VDTESTING_DOWNLOADED_FILES_DIR"
fi
go-tests:
steps:
- go-list:
# Ignoring maintenance test as it needs gcloud binary
- go-test:
inputs:
- packages: "."
maintenance:
steps:
- go-test:
inputs:
- packages: "./maintenance"
# ----------------------------------------------------------------
# --- Utility workflows
dep-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/bitrise-tools/gows
go get -u -v github.com/golang/dep/cmd/dep
gows clear
gows dep ensure -v
gows dep ensure -v -update
# ----------------------------------------------------------------
# --- 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
generate_readme:
steps:
- git::https://github.com/bitrise-steplib/steps-readme-generator.git@main: { }