-
Notifications
You must be signed in to change notification settings - Fork 33
/
bitrise.yml
99 lines (79 loc) · 2.6 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
89
90
91
92
93
94
95
96
97
98
#
# bitrise.yml
# Copyright © 2017 Netguru Sp. z o.o. All rights reserved.
#
# This `bitrise.yml` variant contains the default configuration to be used in
# an iOS app repository. You can strip the comments in your `bitrise.yml` if
# you want.
#
# Scripts in the following `bitrise.yml` file make use of the following
# environment variables that should be set up as secret:
#
# Also, those scripts use the following environment variables that are declared
# publicly in the following file:
#
# - `XCODEBUILD_PROJECT`: A path to a project or a workspace Xcode file.
#
# - `XCODEBUILD_SCHEME`: A name of the scheme to be built.
#
# - `XCODEBUILD_OPTIONS`: An additional build settings passed straight to each
# `xcodebuild` invocation.
#
# CLI metadata.
#
# This metadata is required to always be in `bitrise.yml`. The `format_version`
# setting will be occasionally bumped.
format_version: 1.3.1
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
# Workflow trigger map.
#
# The following trigger map triggers a build only for pull requests against
# `develop` and `master` branches (from forks as well) and pushes to `develop`
# and `master` branches.
#
# More on trigger maps: http://devcenter.bitrise.io/webhooks/trigger-map
trigger_map:
- push_branch: develop
workflow: build-pull-request
- push_branch: master
workflow: build-pull-request
- pull_request_target_branch: develop
workflow: build-pull-request
- pull_request_target_branch: master
workflow: build-pull-request
# Environment configuration.
#
# This list contains the default environment variables shared between workflows.
app:
envs:
- XCODEBUILD_PROJECT: ./Bluetooth.xcodeproj
- XCODEBUILD_OPTIONS: _BUILD_NUMBER=$BITRISE_BUILD_NUMBER
# Workflow declarations.
#
# This list contains workflows used in the above trigger map.
workflows:
build-pull-request:
envs:
- XCODEBUILD_SCHEME: BlueSwift-iOS
before_run:
- test-xcode
# Bootstrap code signing by installing certificates and provisioning profiles.
bootstrap-code-signing:
steps:
- certificate-and-profile-installer: {}
# Build and test an app using `xcodebuild` command.
test-xcode:
steps:
- xcode-test:
inputs:
- project_path: $XCODEBUILD_PROJECT
- scheme: $XCODEBUILD_SCHEME
- xcodebuild_test_options: $XCODEBUILD_OPTIONS
- simulator_device: iPhone 12
# Deploy build artifacts to bitrise.io.
deploy-bitriseio:
steps:
- deploy-to-bitrise-io:
inputs:
- notify_user_groups: none
- is_enable_public_page: false