-
Notifications
You must be signed in to change notification settings - Fork 2
/
bitrise.yml
103 lines (98 loc) · 2.76 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
---
format_version: '4'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: react-native
trigger_map:
- push_branch: "*"
workflow: primary
- pull_request_source_branch: "*"
workflow: primary
workflows:
primary:
steps:
- activate-ssh-key:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone: {}
- yarn: {}
- cocoapods-install:
inputs:
- podfile_path: ios/Podfile
- npm:
inputs:
- command: install -g detox-cli
title: Install Detox CLI
- npm:
inputs:
- command: install -g react-native-cli
title: Install React Native CLI
- script:
inputs:
- content: |-
#!/bin/bash
detox build --configuration ios.sim.release
title: Detox - Build iOS
- script:
inputs:
- content: |-
#!/bin/bash
brew tap wix/brew
brew install applesimutils
title: Install Detox Utils
- script:
inputs:
- content: |-
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
detox test --configuration ios.sim.release --cleanup --take-screenshots all
title: Detox - Run ios E2E Tests
- script:
inputs:
- content: |-
#!/bin/bash
detox build --configuration android.emu.release
title: Detox - Build Android
is_always_run: true
- avd-manager:
inputs:
- emulator_id: emulator-5554
- start_command_flags: "-camera-back none -camera-front none -no-boot-anim
-no-window"
- wait-for-android-emulator:
inputs:
- boot_timeout: '1600'
- script:
inputs:
- content: |-
#!/bin/bash
detox test --configuration android.emu.release.bitrise --cleanup --take-screenshots all
title: Detox - Run android E2E Tests
- deploy-to-bitrise-io:
inputs:
- is_compress: 'true'
- deploy_path: "$BITRISE_SOURCE_DIR/artifacts/"
app:
envs:
- opts:
is_expand: false
PROJECT_LOCATION: android
- opts:
is_expand: false
MODULE: app
- opts:
is_expand: false
VARIANT: ''
- opts:
is_expand: false
BITRISE_PROJECT_PATH: ios/ReactNativeSvgE2E.xcodeproj
- opts:
is_expand: false
BITRISE_SCHEME: ReactNativeSvgE2E
- opts:
is_expand: false
BITRISE_EXPORT_METHOD: ad-hoc
meta:
bitrise.io:
machine_type: performance