This repository was archived by the owner on Dec 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbitrise.yml
More file actions
140 lines (136 loc) · 4.62 KB
/
bitrise.yml
File metadata and controls
140 lines (136 loc) · 4.62 KB
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
---
format_version: '11'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: android
workflows:
deploy:
description: |
Deploys app using [Deploy to bitrise.io Step](https://devcenter.bitrise.io/en/getting-started/getting-started-with-android-apps.html#deploying-an-android-app-to-bitrise-io-53056).
Next steps:
- Check out [Getting started with Android apps](https://devcenter.bitrise.io/en/getting-started/getting-started-with-android-apps.html) for signing and deployment options.
- [Set up code signing with *Android Sign* Step](https://devcenter.bitrise.io/en/code-signing/android-code-signing/android-code-signing-using-the-android-sign-step.html).
steps:
- activate-ssh-key@4: {}
- git-clone@6: {}
- cache-pull@2: {}
- install-missing-android-tools@3:
inputs:
- gradlew_path: '$PROJECT_LOCATION/gradlew'
- change-android-versioncode-and-versionname@1:
inputs:
- build_gradle_path: '$PROJECT_LOCATION/$MODULE/build.gradle'
- android-lint@0:
inputs:
- project_location: '$PROJECT_LOCATION'
- variant: '$VARIANT'
- android-unit-test@1:
inputs:
- project_location: '$PROJECT_LOCATION'
- variant: '$VARIANT'
- android-build@1:
inputs:
- project_location: '$PROJECT_LOCATION'
- module: '$MODULE'
- variant: '$VARIANT'
- sign-apk@1:
run_if: '{{getenv "BITRISEIO_ANDROID_KEYSTORE_URL" | ne ""}}'
- cache-push@2: {}
- deploy-to-bitrise-io@2: {}
iOS:
description: |
Runs tests.
Next steps:
- Check out [Getting started with Android apps](https://devcenter.bitrise.io/en/getting-started/getting-started-with-android-apps.html).
steps:
- activate-ssh-key@4: {}
- git-clone@6: {}
- cache-pull@2: {}
- yarn@0:
title: Install NPM dependencies
- script@1:
inputs:
- content: |
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
gem install cocoapods-art -v 1.0.1
> /Users/vagrant/.netrc
echo "machine repo.onewelcome.com" > /Users/vagrant/.netrc
echo "login $ARTIFACTORY_USER" >> /Users/vagrant/.netrc
echo "password $ARTIFACTORY_PASSWORD" >> /Users/vagrant/.netrc
chmod 600 /Users/vagrant/.netrc
pod repo-art add onegini https://repo.onewelcome.com/artifactory/api/pods/cocoapods-public
- cocoapods-install@2: {}
- xcodebuild@0:
inputs:
- xcodebuild_output_formatter: tee
- xcodebuild_actions: build
- cache-push@2: {}
- deploy-to-bitrise-io@2: {}
meta:
bitrise.io:
stack: osx-xcode-13.4.x
primary:
description: |
Runs tests.
Next steps:
- Check out [Getting started with Android apps](https://devcenter.bitrise.io/en/getting-started/getting-started-with-android-apps.html).
steps:
- build-router-start@0:
inputs:
- workflows: iOS
- abort_on_fail: 'yes'
- access_token: '$BITRISE_API_TOKEN'
- activate-ssh-key@4: {}
- git-clone@6: {}
- cache-pull@2: {}
- yarn@0:
title: Install NPM dependencies
- install-missing-android-tools@3:
inputs:
- gradlew_path: '$PROJECT_LOCATION/gradlew'
- gradle-runner@2:
inputs:
- gradlew_path: '$PROJECT_LOCATION/gradlew'
- gradle_file: '$PROJECT_LOCATION/build.gradle'
- gradle_task: clean build -x test
- android-unit-test@1:
inputs:
- project_location: '$PROJECT_LOCATION'
- variant: '$VARIANT'
- cache-push@2: {}
- deploy-to-bitrise-io@2: {}
- build-router-wait@0:
inputs:
- access_token: '$BITRISE_API_TOKEN'
meta:
bitrise.io:
stack: linux-docker-android-20.04
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_SCHEME: RNOneginiSdk
- opts:
is_expand: false
BITRISE_PROJECT_PATH: ios/RNOneginiSdk.xcworkspace
- opts:
is_expand: false
SIMULATOR_DEVICE: iPhone 11
- opts:
is_expand: false
SIMULATOR_OS_VERSION: latest
trigger_map:
- pull_request_target_branch: '*'
workflow: primary