forked from nicktrienensfuzz/nstack-ios-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitrise.yml
65 lines (65 loc) · 1.77 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
format_version: "8"
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: ios
app:
envs:
- BITRISE_PROJECT_PATH: NStackSDK.xcodeproj
opts:
is_expand: false
- BITRISE_SCHEME: NStackSDK
opts:
is_expand: false
- BITRISE_EXPORT_METHOD: ad-hoc
opts:
is_expand: false
- BITRISE_SCHEME_TVOS: NStackSDK-tvOS
opts:
is_expand: false
trigger_map:
- push_branch: '*'
workflow: build
- pull_request_target_branch: master
workflow: run-tests
- pull_request_target_branch: develop
workflow: run-tests
workflows:
build:
description: Runs on every push. Tries to make a build.
steps:
- activate-ssh-key:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone: {}
- cache-pull: {}
- certificate-and-profile-installer: {}
- carthage:
inputs:
- carthage_options: --platform ios
- carthage_command: bootstrap
- xcode-build-for-test: {}
- cache-push: {}
run-tests:
description: Runs on pull requests to `develop` and `master`. Builds and runs
the tests.
steps:
- activate-ssh-key:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone: {}
- cache-pull: {}
- certificate-and-profile-installer: {}
- carthage:
inputs:
- carthage_options: --platform ios,tvos
- carthage_command: bootstrap
- xcode-test:
inputs:
- project_path: $BITRISE_PROJECT_PATH
- scheme: $BITRISE_SCHEME
- xcode-test:
title: Xcode Test for tvOS
is_always_run: true
inputs:
- project_path: $BITRISE_PROJECT_PATH
- simulator_device: Apple TV 4K
- simulator_platform: tvOS Simulator
- scheme: $BITRISE_SCHEME_TVOS
- cache-push: {}