-
Notifications
You must be signed in to change notification settings - Fork 92
/
bitrise.yml
112 lines (90 loc) · 2.5 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#
# bitrise.yml
#
# Copyright © 2017-2020 Netguru S.A. All rights reserved.
# Licensed under the MIT License.
#
# CLI metadata
format_version: 1.3.0
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
# Workflow trigger map
trigger_map:
- pull_request_target_branch: develop
workflow: build-and-test
- push_branch: develop
workflow: build-and-test
# Environment configuration
app:
envs:
- XCODEBUILD_PROJECT: ResponseDetective.xcodeproj
- XCODEBUILD_OPTIONS: ''
# Workflow declarations
workflows:
# Top level build workflows
build-and-test:
envs:
- XCODEBUILD_SCHEME_IOS: ResponseDetective-iOS
- XCODEBUILD_SCHEME_MACOS: ResponseDetective-macOS
- XCODEBUILD_SCHEME_TVOS: ResponseDetective-tvOS
before_run:
- cache-pull
- bootstrap-carthage
- xcode-test
- cocoapods-test
after_run:
- cache-push
- deploy-artifacts
# Cache workflows
cache-pull:
steps:
- cache-pull: {}
cache-push:
steps:
- cache-push:
inputs:
- cache_paths: "./Carthage -> ./Carthage/Cachefile"
# Bootstrap workflows
bootstrap-carthage:
steps:
- carthage:
inputs:
- carthage_command: bootstrap
# Test workflows
xcode-test:
steps:
- xcode-test:
title: xcode-test-ios
inputs:
- project_path: $XCODEBUILD_PROJECT
- scheme: $XCODEBUILD_SCHEME_IOS
- xcodebuild_test_options: $XCODEBUILD_OPTIONS
- generate_code_coverage_files: 'yes'
- xcode-test-mac:
title: xcode-test-macos
inputs:
- project_path: $XCODEBUILD_PROJECT
- scheme: $XCODEBUILD_SCHEME_MACOS
- xcodebuild_test_options: $XCODEBUILD_OPTIONS
- generate_code_coverage_files: 'yes'
- xcode-test:
title: xcode-test-tvos
inputs:
- project_path: $XCODEBUILD_PROJECT
- scheme: $XCODEBUILD_SCHEME_TVOS
- xcodebuild_test_options: $XCODEBUILD_OPTIONS
- generate_code_coverage_files: 'yes'
- simulator_platform: tvOS Simulator
- simulator_device: Apple TV 1080p
cocoapods-test:
steps:
- script:
title: cocoapods-lint
inputs:
- content: pod lib lint
# Deploy workflows
deploy-artifacts:
steps:
- deploy-to-bitrise-io:
inputs:
- notify_user_groups: none
- is_enable_public_page: false