/
bitrise.yml
74 lines (69 loc) · 2 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
format_version: 7
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
workflows:
ci:
steps:
- git::https://github.com/bitrise-steplib/steps-check.git: { }
after_run:
- test-mac
- test-spm
# ----------------------------------------------------------------
# --- workflow to Step Test
test-mac:
envs:
- SAMPLE_APP_URL: https://github.com/bitrise-samples/macos-sample-app.git
- BITRISE_PROJECT_PATH: macos-sample-app.xcodeproj
- BITRISE_SCHEME: macos-sample-app
- BRANCH: master
after_run:
- _run_test
test-spm:
envs:
- SAMPLE_APP_URL: https://github.com/bitrise-io/sample-spm-project.git
- BITRISE_PROJECT_PATH: Package.swift
- BITRISE_SCHEME: CoolFeature-Package
- BRANCH: main
after_run:
- _run_test
_run_test:
steps:
- script:
title: cleanup ./_tmp
inputs:
- content: rm -rf ./_tmp
- change-workdir:
title: change workdir to ./_tmp
run_if: true
inputs:
- path: ./_tmp
- is_create_path: true
- git::https://github.com/bitrise-steplib/bitrise-step-simple-git-clone.git@master:
title: git clone sample project
inputs:
- repository_url: $SAMPLE_APP_URL
- clone_into_dir: .
- branch: $BRANCH
- path::./:
title: step test
inputs:
- is_clean_build: "yes"
- generate_code_coverage_files: "no"
- output_tool: xcpretty
- destination: platform=OS X,arch=x86_64
- script:
title: output test
is_always_run: true
inputs:
- content: |-
echo "BITRISE_XCODE_TEST_RESULT: ${BITRISE_XCODE_TEST_RESULT}"
# ----------------------------------------------------------------
# --- workflow to Share this step into a Step Library
audit-this-step:
steps:
- script:
title: audit this step
inputs:
- content: |-
#!/bin/bash
set -ex
stepman audit --step-yml ./step.yml