-
Notifications
You must be signed in to change notification settings - Fork 15
/
bitrise.yml
74 lines (73 loc) · 2.29 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: '8'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: ios
trigger_map:
- pull_request_source_branch: "*"
workflow: wetransfer_pr_testing
- tag: "*"
workflow: wetransfer_tag_releasing
workflows:
wetransfer_pr_testing_local:
steps:
- script:
title: Setup environment variables
inputs:
- content: |-
#!/bin/bash
# Change these for your current local session.
export BITRISE_IO="fake_bitrise"
export BITRISEIO_GIT_REPOSITORY_OWNER="WeTransfer"
export BITRISEIO_GIT_REPOSITORY_SLUG="WeTransfer-iOS-CI"
export BITRISE_PULL_REQUEST=117
bitrise run wetransfer_pr_testing
wetransfer_pr_testing:
steps:
- activate-ssh-key:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone: {}
- script:
inputs:
- content: |-
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
env
- script:
title: Continue from WeTransfer-iOS-CI repo
inputs:
- content: |-
#!/bin/bash
set -ex
bitrise run --config ./Bitrise/testing_bitrise.yml "${BITRISE_TRIGGERED_WORKFLOW_ID}"
envs:
- opts:
is_expand: false
FASTLANE_LANE: test_pr_linter
wetransfer_tag_releasing:
steps:
- activate-ssh-key:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- script:
title: Force SSH
inputs:
- content: |-
#!/usr/bin/env bash
# As we work with submodules, make sure we use SSH for this config so we can push our PR later on.
# See for more info: https://discuss.bitrise.io/t/git-force-to-use-ssh-url-instead-of-https-for-github-com/4384
git config --global url."git@github.com:".insteadOf "https://github.com/"
- git-clone: {}
- script:
title: Continue from WeTransfer-iOS-CI repo
inputs:
- content: |-
#!/bin/bash
set -ex
bitrise run --config ./Bitrise/tag_releasing_bitrise.yml "${BITRISE_TRIGGERED_WORKFLOW_ID}"
meta:
bitrise.io:
machine_type: standard
stack: osx-xcode-14.2.x
machine_type_id: g2-m1.4core