-
Notifications
You must be signed in to change notification settings - Fork 287
/
open-live-template.yml
39 lines (31 loc) · 1.07 KB
/
open-live-template.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
parameters:
project: ''
name: ''
jobs:
- job: ${{ parameters.name }}_build
displayName: ${{ parameters.name }}
pool:
vmImage: 'macos-latest'
variables:
- group: AgoraKeys
steps:
- script: cd ${{ parameters.project }} && pwd && ls && python ci.env.py
env:
AGORA_APP_ID: $(agora.appId)
- task: Gradle@2
inputs:
workingDirectory: '${{ parameters.project }}'
gradleWrapperFile: '${{ parameters.project }}/gradlew'
gradleOptions: '-Xmx3072m'
publishJUnitResults: false
testResultsFiles: '**/TEST-*.xml'
tasks: 'assembleDebug'
- task: CopyFiles@2
inputs:
Contents: '**/*.apk'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
- script: cd $(Build.ArtifactStagingDirectory) && zip -r ${{ parameters.project }}.zip .
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)/${{ parameters.project }}.zip'
ArtifactName: ${{ parameters.project }}