forked from Yubico/yubioath-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
34 lines (29 loc) · 879 Bytes
/
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
# Android
# Build your Android project with Gradle.
# Add steps that test, sign, and distribute the APK, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/android
trigger:
- master
pool:
vmImage: 'macos-latest'
steps:
- task: Gradle@2
inputs:
workingDirectory: ''
gradleWrapperFile: 'gradlew'
gradleOptions: '-Xmx3072m'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
tasks: 'assembleDebug assembleRelease test'
options: '--stacktrace'
- task: CopyFiles@2
displayName: Stage app artifacts
inputs:
contents: '**/*.apk'
targetFolder: $(Build.ArtifactStagingDirectory)/bin
flattenFolders: true
- task: PublishBuildArtifacts@1
displayName: Publish build artifacts
inputs:
pathToPublish: $(Build.ArtifactStagingDirectory)
artifactName: $(Build.DefinitionName)