-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathazure-pipelines-android-debug.yml
More file actions
45 lines (36 loc) · 1.2 KB
/
azure-pipelines-android-debug.yml
File metadata and controls
45 lines (36 loc) · 1.2 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
trigger:
- master
pool:
vmImage: "ubuntu-latest"
variables:
GRADLE_USER_HOME: $(Pipeline.Workspace)/.gradle
repositoryName: Account-Ledger-Android-Client
steps:
- checkout: self
submodules: recursive
- task: Cache@2.198.0
inputs:
key: 'gradleUserHome | "$(Agent.OS)"'
restoreKeys: gradleUserHome
path: $(GRADLE_USER_HOME)
displayName: Gradle User Home Cache
- task: JavaToolInstaller@0.209.0
inputs:
versionSpec: "17"
jdkArchitectureOption: "x64"
jdkSourceOption: "PreInstalled"
- script: |
sed -i "s|SERVER_ENDPOINT_URL|$SERVER_ENDPOINT_URL|" app/src/main/java/ndk/personal/account_ledger/constants/ServerEndpoint.java
env:
SERVER_ENDPOINT_URL: $(SERVER_ENDPOINT_URL)
displayName: "Update ServerEndpoint constants"
- task: Gradle@3.208.0
displayName: "Gradle assembleDevelopmentDebug : Android APK"
inputs:
# TODO : Add build scan, upload build scan results
gradleOptions: "-Xmx3072m"
tasks: "assembleDevelopmentDebug"
- publish: app/build/outputs/apk/development/debug/app-development-debug.apk
artifact: $(repositoryName) Debug Apk
- script: "./gradlew --stop"
displayName: Stop Gradle Daemon