This repository has been archived by the owner on Jul 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
47 lines (45 loc) · 1.87 KB
/
azure-pipelines.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
name: $(SourceBranchName) $(Rev:r)
pr: none
jobs:
- job: Dependencies
pool:
vmImage: 'macOS-10.13'
variables:
- group: gradle
steps:
- task: Bash@3
displayName: Accept Android SDK Licenses
inputs:
targetType: inline
script: 'echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --licenses'
- job: Build
dependsOn: Dependencies
pool:
vmImage: 'macOS-10.13'
steps:
- task: DownloadSecureFile@1
displayName: Download google-service.json
inputs:
secureFile: google-services.json
- task: Bash@3
displayName: Copy google-service.json
inputs:
targetType: inline
script: 'cp "$DOWNLOADSECUREFILE_SECUREFILEPATH" ./app'
- task: Gradle@2
displayName: Build Debug Application
inputs:
workingDirectory: ''
gradleWrapperFile: 'gradlew'
gradleOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
jdkArchitectureOption: 'x64'
publishJUnitResults: false
tasks: 'assembleDebug'
options: '-PBRANHAM_PLAYER_ANDROID_AUTH0_DEV_CLIENT_ID=$(BRANHAM_PLAYER_ANDROID_AUTH0_DEV_CLIENT_ID) -PBRANHAM_PLAYER_ANDROID_AUTH0_PRD_CLIENT_ID=$(BRANHAM_PLAYER_ANDROID_AUTH0_PRD_CLIENT_ID) -PBRANHAM_PLAYER_ANDROID_AUTH0_SCHEME=$(BRANHAM_PLAYER_ANDROID_AUTH0_SCHEME) -PBRANHAM_PLAYER_ANDROID_AUTH0_DOMAIN=$(BRANHAM_PLAYER_ANDROID_AUTH0_DOMAIN) -PBRANHAM_PLAYER_ANDROID_DEV_LOGGLY_KEY="$(BRANHAM_PLAYER_ANDROID_DEV_LOGGLY_KEY)" -PBRANHAM_PLAYER_APP_CENTER_DEV_KEY="$(BRANHAM_PLAYER_APP_CENTER_DEV_KEY)" -PBRANHAM_PLAYER_APP_CENTER_RELEASE_KEY="$(BRANHAM_PLAYER_APP_CENTER_RELEASE_KEY)"'
- task: PublishPipelineArtifact@0
displayName: Save APK
inputs:
artifactName: 'app-debug.apk'
targetPath: 'app/build/outputs/apk/debug'