-
Notifications
You must be signed in to change notification settings - Fork 107
/
azure-pipelines-fork-build-push.yml
71 lines (64 loc) · 2.57 KB
/
azure-pipelines-fork-build-push.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
trigger:
batch: true
branches:
include:
- master
pr:
autoCancel: true
branches:
include:
- master
jobs:
- job: BuildTest
pool:
vmImage: ubuntu-latest
steps:
- task: Gradle@3
displayName: "Lint Check"
inputs:
gradleWrapperFile: 'gradlew'
tasks: 'lint'
javaHomeOption: 'JDKVersion'
sonarQubeRunAnalysis: false
spotBugsAnalysis: false
- task: Gradle@3
displayName: "gradlew build"
inputs:
gradleWrapperFile: "gradlew"
tasks: "assembleDevelopmentDebug"
javaHomeOption: "JDKVersion"
jdkVersionOption: "$(jdkVersion)"
- task: Gradle@3
displayName: Unit tests
inputs:
gradleWrapperFile: "gradlew"
tasks: "testDevelopmentDebugUnitTest"
publishJUnitResults: false
javaHomeOption: "JDKVersion"
jdkVersionOption: "17"
sonarQubeRunAnalysis: false
spotBugsAnalysis: false
- task: Gradle@3
displayName: Generate testApk
inputs:
gradleWrapperFile: "gradlew"
tasks: "assembleDevelopmentDebugAndroidTest"
publishJUnitResults: false
javaHomeOption: "JDKVersion"
jdkVersionOption: "$(jdkVersion)"
sonarQubeRunAnalysis: false
spotBugsAnalysis: false
- task: Gradle@3
displayName: Hydra Lab UI test
inputs:
gradleWrapperFile: "gradlew"
tasks: "requestHydraLabTest -PappPath=$(build.sourcesdirectory)/FluentUI.Demo/build/outputs/apk/development/debug/FluentUI.Demo-development-debug.apk -PtestAppPath=$(build.sourcesdirectory)/FluentUI.Demo/build/outputs/apk/androidTest/development/debug/FluentUI.Demo-development-debug-androidTest.apk -PbuildFlavor=$(buildFlavor) -PtestSuiteName=$(testSuiteName) -PrunTimeOutSeconds=$(timeOutSeconds) -PdeviceIdentifier=$(deviceIdentifier) -PgroupTestType=$(groupTestType) -PreportAudience=TestLabOwner -PauthToken=$(authToken) -PpkgName=$(pkgName) -PtestPkgName=$(testPkgName) -PrunningType=$(runningType) -PframeworkType=$(frameworkType) -PhydraLabAPIHost=$(hydraLabAPIHost) -PhydraLabAPISchema=$(hydraLabAPISchema)"
javaHomeOption: "JDKVersion"
jdkVersionOption: "$(jdkVersion)"
publishJUnitResults: true
- task: PublishTestResults@2
displayName: "Publish Test Results"
inputs:
testResultsFiles: "$(build.sourcesdirectory)/build/testResult/**/hydra_result_*.xml"
testRunTitle: "Test-Result"
failTaskOnFailedTests: false