-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathcommon.yml
More file actions
92 lines (87 loc) · 2.48 KB
/
common.yml
File metadata and controls
92 lines (87 loc) · 2.48 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
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
83
84
85
86
87
88
89
90
91
92
# File: azure-pipelines\pull-request-validation\common.yml
# Variable: 'MOCK_API_URL' was defined in the Variables tab
# Description: Assemble and run unit test
name: $(date:yyyyMMdd)$(rev:.r)
trigger: none
variables:
- group: devex-ciam-test
resources:
repositories:
- repository: self
type: git
ref: dev
pool:
vmImage: 'windows-2022'
jobs:
- job: build_test
displayName: Build & Test
cancelTimeoutInMinutes: 1
variables:
Codeql.Enabled: true
steps:
- checkout: self
clean: true
submodules: recursive
persistCredentials: True
- template: ../templates/steps/automation-cert.yml
- task: CmdLine@1
displayName: Set Office MVN Access Token in Environment
inputs:
filename: echo
arguments: '##vso[task.setvariable variable=ENV_VSTS_MVN_ANDROIDCOMMON_ACCESSTOKEN]$(System.AccessToken)'
- task: CodeQL3000Init@0
- task: Gradle@3
name: Gradle3
displayName: Assemble Local
inputs:
javaHomeSelection: JDKVersion
jdkVersionOption: "1.17"
tasks: clean common:assembleLocal
publishJUnitResults: false
jdkArchitecture: x64
sqAnalysisEnabled: false
- task: CodeQL3000Finalize@0
- task: Gradle@2
displayName: Run Unit tests
inputs:
javaHomeSelection: JDKVersion
jdkVersionOption: "1.17"
tasks: common:testLocalDebugUnitTest -PlabSecret=$(LabVaultAppCert) -PmockApiUrl=$(MOCK_API_URL)
- task: Gradle@3
displayName: Check Dependencies size
condition: eq(variables['system.pullRequest.targetBranch'], 'dev')
inputs:
tasks: common:dependenciesSizeCheck -PdependenciesSizeCheckConfig=distReleaseRuntimeClasspath
jdkVersionOption: "1.17"
- job: spotbugs
displayName: SpotBugs
cancelTimeoutInMinutes: 1
steps:
- checkout: self
clean: true
submodules: recursive
persistCredentials: True
- template: ../templates/steps/spotbugs.yml
parameters:
project: common
- job: lint
displayName: Lint
cancelTimeoutInMinutes: 1
steps:
- checkout: self
clean: true
submodules: recursive
persistCredentials: True
- task: CmdLine@1
displayName: Set Office MVN Access Token in Environment
inputs:
filename: echo
arguments: '##vso[task.setvariable variable=ENV_VSTS_MVN_ANDROIDCOMMON_ACCESSTOKEN]$(System.AccessToken)'
- task: Gradle@3
displayName: Lint
inputs:
tasks: clean common:lintLocalDebug
publishJUnitResults: false
javaHomeSelection: JDKVersion
jdkVersionOption: "1.17"
...