-
Notifications
You must be signed in to change notification settings - Fork 2
/
bitrise.yml
69 lines (64 loc) · 2.05 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
format_version: 6
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
app:
envs:
- BITRISE_STEP_ID: bluepill-build-test-for-ios
- BITRISE_STEP_VERSION: "0.3.0"
- BITRISE_STEP_GIT_CLONE_URL: https://github.com/HealthEngineAU/bitrise-step-bluepill-build-test-for-ios.git
- BITRISE_SAMPLE_APP: https://github.com/reececomo/sample-apps-ios-workspace-swift.git
workflows:
test:
before_run:
- audit-this-step
steps:
- script:
title: rm existing _tmp dir
inputs:
- content: rm -rf _tmp
- change-workdir:
title: Switch working dir to test / _tmp dir
run_if: true
inputs:
- path: ./_tmp
- is_create_path: true
- script:
title: Clone Sample App
inputs:
- content: git clone $BITRISE_SAMPLE_APP .
- path::./:
title: Test bluepill-build-run-for-ios
run_if: true
inputs:
- bluepill_version: bluepill_4_1_1__xcode_10_2
- target_name: sample-apps-ios-workspace-swift
- workspace: sample-apps-ios-workspace-swift.xcworkspace
- scheme: sample-apps-ios-workspace-swift
- derived_data_path: build
- device_type: "iPhone SE"
- bluepill_output_dir: bluepill-output
- test_result_env_var: MY_TESTS
- generate_coverage: "true"
- script:
title: Check the test results are set
inputs:
- content: |
#!/bin/bash
set -e
if [ -z "$MY_TESTS" ]; then
echo "Test result string env var failed to set!"
exit -1
fi
if [ -z "$MY_TESTS_MARKDOWN" ]; then
echo "Markdown-formatted test result string env var failed to set!"
exit -1
fi
# ----------------------------------------------------------------
# --- 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