-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitrise.yml
88 lines (86 loc) · 2.67 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
---
format_version: "4"
default_step_lib_source: "https://github.com/bitrise-io/bitrise-steplib.git"
project_type: ""
app:
envs:
- BITRISE_STEP_ID: nitro-ios
- BITRISE_STEP_GIT_CLONE_URL: "https://github.com/nitro-build/bitrise-step-nitro-ios.git"
meta:
bitrise.io:
stack: osx-xcode-13.4.x
workflows:
release:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@7: {}
- brew-install@0:
title: Setup deps (OSX) - Install brew dependencies
inputs:
- packages: gnu-sed
- nvm@1:
run_if: .IsCI
inputs:
- node_version: "16"
- cache-pull@2: {}
- yarn@0:
inputs:
- cache_local_deps: "yes"
- command: install
- cache-push@2:
inputs:
- compress_archive: "true"
- git::https://github.com/bitrise-steplib/steps-readme-generator.git@main:
title: Generate README
- yarn@0:
inputs:
- command: semantic-release
test:
steps:
- change-workdir:
title: Switch working dir to test / _tmp dir
description: |-
To prevent step testing issues, like referencing relative
files with just './some-file' in the step's code, which would
work for testing the step from this directory directly
but would break if the step is included in another `bitrise.yml`.
run_if: "true"
inputs:
- path: ./_tmp
- is_create_path: true
- path::./:
title: Step Test
is_skippable: true
description: |-
Run Nitro with `fail_safe=true` to prevent build to fail. Next step validate NITRO_BUILD_STATUS should be
run_if: "true"
inputs:
- fail_safe: "yes"
- script@1:
inputs:
- content: |-
#!/usr/bin/env bash
set -ex
if [[ "$NITRO_BUILD_STATUS" == "failed" ]]; then
echo "NITRO_BUILD_STATUS is 'failed', as expected"
exit 0
else
echo "NITRO_BUILD_STATUS is NOT 'failed', this is NOT expected."
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
trigger_map:
- push_branch: main
workflow: release
- push_branch: beta
workflow: release