forked from netguru/ngrvalidator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitrise.yml
108 lines (83 loc) · 2.02 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
#
# bitrise.yml
#
# Copyright (c) 2017 Netguru Sp. z o.o. All rights reserved.
#
# CLI metadata
format_version: 1.3.0
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
# Workflow trigger map
trigger_map:
- push_branch: 'develop'
workflow: build-and-test-all-platforms
- pull_request_target_branch: 'develop'
workflow: build-and-test-all-platforms
# Environment configuration
app:
envs:
- XCODEBUILD_PROJECT: NGRValidator.xcworkspace
- XCODEBUILD_OPTIONS: _BUILD_NUMBER=$BITRISE_BUILD_NUMBER
# Workflow declarations
workflows:
# Top level build workflows
build-and-test-all-platforms:
before_run:
- resolve_dependencies
after_run:
- build-ios
- build-macos
- cache-push
- deploy-artifacts
# Platform specific builds
build-macos:
envs:
- XCODEBUILD_SCHEME: NGRValidator-MacOS
after_run:
- xcode-test-mac
build-ios:
envs:
- XCODEBUILD_SCHEME: NGRValidator-iOS
after_run:
- xcode-test
# Dependencies
resolve_dependencies:
before_run:
- cache-pull
- pods-install
# Cocoapods
pods-install:
steps:
- cocoapods-install: {}
# Cache
cache-pull:
steps:
- cache-pull: {}
cache-push:
steps:
- cache-push:
inputs:
- cache_paths: |-
./Pods -> ./Podfile.lock
# Xcode
xcode-test-mac:
steps:
- xcode-test-mac:
inputs:
- project_path: $XCODEBUILD_PROJECT
- scheme: $XCODEBUILD_SCHEME
- xcodebuild_test_options: $XCODEBUILD_OPTIONS
- generate_code_coverage_files: 'yes'
xcode-test:
steps:
- xcode-test:
inputs:
- project_path: $XCODEBUILD_PROJECT
- scheme: $XCODEBUILD_SCHEME
- xcodebuild_test_options: $XCODEBUILD_OPTIONS
- generate_code_coverage_files: 'yes'
# Deploy
deploy-artifacts:
steps:
- deploy-to-bitrise-io:
inputs:
- notify_user_groups: none