forked from logukavin/libatsc3-middleware-sample-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmiddleware.yml
82 lines (69 loc) · 2.79 KB
/
middleware.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
# Android
# assembleRelease your Android project with Gradle.
# Add steps that test, sign, and distribute the APK, save assembleRelease artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/android
trigger:
tags:
include:
- 1.*
resources:
pipelines:
- pipeline: libatsc3 # Name of the pipeline resource
source: libatsc3 # Name of the pipeline referenced by the pipeline resource
trigger: true # Run app-ci pipeline when any run of security-lib-ci completes
pool:
vmImage: 'ubuntu-latest'
variables:
- group: keystore-properties
- name: ARTIFACT_VERSION
value: 0.0.0
steps:
- powershell: |
Write-Host "##vso[task.setvariable variable=ARTIFACT_VERSION]$(git describe --tags)"
displayName: 'Setup ARTIFACT_VERSION from tag'
- bash:
echo "y" | sudo $(ANDROID_SDK_ROOT)/tools/bin/sdkmanager --install "ndk;21.1.6352462" --sdk_root=${ANDROID_SDK_ROOT}
displayName: 'Setup NDK 21.1.6352462'
- task: MavenAuthenticate@0
displayName: 'Maven Authenticate'
inputs:
artifactsFeeds: 'middleware, nextgen'
- task: Gradle@2
inputs:
workingDirectory: ''
gradleWrapperFile: 'gradlew'
javaHomeOption: 'JDKVersion'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
options: '-PstoreFile=$(storeFile) -Ppassword=$(password) -PkeyAlias=$(keyAlias) -PkeyPassword=$(keyPassword)'
tasks: 'clean :nextgen-core:assembleRelease :nextgen-middleware:assembleRelease :nextgen-player:assembleRelease :nextgen-view:assembleRelease :nextgen-dev:assembleRelease'
displayName: gradlew clean and build
# - task: Gradle@2
# inputs:
# workingDirectory: ''
# gradleWrapperFile: 'gradlew'
# javaHomeOption: 'JDKVersion'
# publishJUnitResults: true
# testResultsFiles: '**/TEST-*.xml'
# tasks: ':nextgen-middleware:testReleaseUnitTest'
# displayName: gradlew test
- task: Gradle@2
inputs:
workingDirectory: ''
gradleWrapperFile: 'gradlew'
javaHomeOption: 'JDKVersion'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
options: '-PartifactVersion=$(ARTIFACT_VERSION) -PstoreFile=$(storeFile) -Ppassword=$(password) -PkeyAlias=$(keyAlias) -PkeyPassword=$(keyPassword)'
tasks: ':nextgen-core:publish :nextgen-middleware:publish :nextgen-player:publish :nextgen-view:publish :nextgen-dev:publish'
displayName: gradlew publish
- task: CopyFiles@2
displayName: 'Copy .aar files to artifact staging directory'
inputs:
SourceFolder: '$(system.defaultworkingdirectory)'
Contents: '**/*.aar'
TargetFolder: '$(build.artifactstagingdirectory)'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)'