This repository has been archived by the owner on Oct 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
/
bitrise.yml
80 lines (73 loc) · 2.73 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
format_version: 1.1.0
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
app:
envs:
- ANSIBLE_HOST_KEY_CHECKING: 'False'
# define these in the .bitrise.secrets.yml
- VM_BUILD_BOX_VERSION: $VM_BUILD_BOX_VERSION
- VM_BUILD_IP: $VM_BUILD_IP
# Full, absolute Xcode path, e.g.: /Applications/Xcode.app
- XCODE_PATH: $XCODE_PATH
trigger_map:
- pattern: step/1
workflow: vagrant-setup
- pattern: step/2
workflow: provision-vm
- pattern: step/3
workflow: DEPRECATED-create-xcode-version-mapping
- pattern: step/xamarin
workflow: provision-xamarin-vm
workflows:
vagrant-setup:
description: |-
Runs `ansible` with the `vagrant-setup-playbook`, to have a bare minimum
`vagrant` ready setup on the target VM.
steps:
- script:
inputs:
- content: |-
#!/bin/bash
set -e
echo " (!!!) When prompted for a password provide the VM's SSH password"
echo ' should be "vagrant" if you do a default vagrant setup'
set -x
ansible-playbook --ask-pass -i "${VM_BUILD_IP}", "./vagrant-setup-playbook.yml"
provision-vm:
description: |-
Runs `ansible` with the `playbook.yml` playbook, to provision the
Virtual Machine. After this the VM should be completely ready,
you just have to save it / package it / distribute it.
steps:
- script:
inputs:
- content: |-
#!/bin/bash
set -e
set -x
echo " * VM_BUILD_BOX_VERSION: $VM_BUILD_BOX_VERSION"
ansible-playbook -e bitrise_box_version="${VM_BUILD_BOX_VERSION}" -e xcode_path="${XCODE_PATH}" --private-key ./vagrant-insecure_private_key -i "${VM_BUILD_IP}", "./playbook.yml"
DEPRECATED-create-xcode-version-mapping:
description: |-
DEPRECATED: will be removed in the near future, as we don't pre-install multiple Xcode versions
in the same VM anymore (mainly because of incompatibility issues).
steps:
- script:
inputs:
- content: |-
#!/bin/bash
set -e
set -x
ansible-playbook -e xcode_path="${XCODE_PATH}" --private-key ./vagrant-insecure_private_key -i "${VM_BUILD_IP}", "./xcode-version-map-files-playbook.yml"
provision-xamarin-vm:
description: |-
Runs `ansible` with the `xamarin-playbook.yml` playbook, to provision the
Virtual Machine. After this the VM should be completely ready,
you just have to save it / package it / distribute it.
steps:
- script:
inputs:
- content: |-
#!/bin/bash
set -e
set -x
ansible-playbook --private-key ./vagrant-insecure_private_key -i "${VM_BUILD_IP}", "./xamarin-playbook.yml"