-
Notifications
You must be signed in to change notification settings - Fork 98
/
bitrise.yml
121 lines (121 loc) · 3.94 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
113
114
115
116
117
118
119
120
121
---
format_version: '8'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: react-native
workflows:
android:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@8: {}
- cache-pull@2: {}
- avd-manager@1:
inputs:
- tag: default
- profile: Nexus 5X
- emulator_id: Nexus_5X_API_27
- api_level: '27'
- yarn@0:
inputs:
- workdir: example
- cache_local_deps: 'yes'
- command: install
- npm@1:
inputs:
- command: install -g detox-cli
- cache_local_deps: 'true'
- workdir: example
- script@1:
inputs:
- working_dir: example
- content: "#!/usr/bin/env bash\n# fail if any commands fails\nset -e\n# debug
log\nset -x\n \n# we are building a release device configuration\nyarn
detox build --configuration android.emu.release"
title: Detox Build
- cache-push@2: {}
- wait-for-android-emulator@1: {}
- script@1:
inputs:
- working_dir: example
- content: "#!/usr/bin/env bash\n# fail if any commands fails\nset -e\n# debug
log\nset -x\n \n# we are testing a release device configuration\nyarn
detox test --configuration android.emu.release --cleanup"
title: Detox Test
- deploy-to-bitrise-io@2:
inputs:
- deploy_path: example
primary:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@8: {}
- cache-pull@2: {}
- yarn@0:
inputs:
- workdir: example
- cache_local_deps: 'yes'
- command: install
- npm@1:
inputs:
- command: install -g detox-cli
- cache_local_deps: 'true'
- workdir: example
- cocoapods-install@2:
inputs:
- source_root_path: '$BITRISE_SOURCE_DIR/example/ios'
- script@1:
inputs:
- working_dir: example
- content: "#!/usr/bin/env bash\n# fail if any commands fails\nset -e\n# debug
log\nset -x\n \n# applesimutils is a collection of utils for Apple simulators\nbrew
tap wix/brew\nbrew install applesimutils"
title: Detox Install
- script@1:
inputs:
- working_dir: example
- content: "#!/usr/bin/env bash\n# fail if any commands fails\nset -e\n# debug
log\nset -x\n \n# we are building a release device configuration\nyarn
detox build --configuration ios.sim.release"
title: Detox Build
- script@1:
inputs:
- working_dir: example
- content: "#!/usr/bin/env bash\n# fail if any commands fails\nset -e\n# debug
log\nset -x\n \n# we are testing a release device configuration\nyarn
detox test --configuration ios.sim.release --cleanup"
title: Detox Test
- cache-push@2:
inputs:
- cache_paths: ''
- deploy-to-bitrise-io@2:
inputs:
- deploy_path: example
app:
envs:
- opts:
is_expand: false
PROJECT_LOCATION: example/android
- opts:
is_expand: false
MODULE: app
- opts:
is_expand: false
VARIANT: ''
- opts:
is_expand: false
BITRISE_PROJECT_PATH: example/ios/SwiperFlatListExample.xcworkspace
- opts:
is_expand: false
BITRISE_SCHEME: SwiperFlatListExample
- opts:
is_expand: false
BITRISE_EXPORT_METHOD: development
trigger_map:
- push_branch: master
workflow: primary
- pull_request_source_branch: '*'
workflow: primary
pull_request_target_branch: master
meta:
bitrise.io:
stack: osx-xcode-14.3.x-ventura