-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbitrise.yml
99 lines (96 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
---
format_version: 1.1.0
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
trigger_map:
- push_branch: "*"
workflow: full_build
workflows:
_setup:
steps:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone:
inputs:
- clone_depth: ''
title: Git Clone Repo
- script:
inputs:
- content: |-
#!/bin/bash
npm cache verify
npm install
title: Install NPM Packages
_unit_tests:
steps:
- npm:
inputs:
- command: test
title: Run Unit tests
_e2e_tests:
steps:
- 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
brew tap wix/brew
brew install applesimutils
title: Install Detox Utils
- npm:
inputs:
- command: run-script test-ios-release
title: Run Detox Tests
_deploy:
steps:
inputs:
- gradlew_path: "$ANDROID_PROJECT_PATH/gradlew"
inputs:
- module: app
- variant: "$BUILD_VARIANT"
- project_location: "$ANDROID_PROJECT_PATH"
title: Build Android Debug
- [email protected]: {}
inputs:
- project_path: "$IOS_PROJECT_PATH"
- scheme: "$IOS_SCHEME"
- export_method: "$IOS_EXPORT_METHOD"
- configuration: "$BUILD_VARIANT"
title: XCode Archive
- [email protected]: {}
full_build:
before_run:
- _setup
- _unit_tests
- _e2e_tests
- _deploy
after_run: []
app:
envs:
- opts:
is_expand: false
ANDROID_PROJECT_PATH: android
- opts:
is_expand: false
MANIFEST_PATH: android/app/src/main/AndroidManifest.xml
- opts:
is_expand: false
IOS_PROJECT_PATH: ios/RedditApp.xcodeproj
- opts:
is_expand: false
IOS_SCHEME: Reddit
- opts:
is_expand: false
IOS_EXPORT_METHOD: development
- opts:
is_expand: false
BUILD_VARIANT: Debug