-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
163 lines (137 loc) · 5.04 KB
/
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
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
trigger:
branches:
include:
- '*'
tags:
include:
- '*'
variables:
GRADLE_USER_HOME: $(Pipeline.Workspace)/.gradle
stages:
- stage: Build
jobs:
- job: Linux
pool:
vmImage: ubuntu-18.04
steps:
- task: Cache@2
displayName: 'Restore Gradle Build Cache'
inputs:
key: 'gradle | "$(Agent.OS)"'
restoreKeys: gradle
path: $(GRADLE_USER_HOME)
- bash: wget https://cdn.azul.com/zulu/bin/zulu14.28.21-ca-jdk14.0.1-linux_x64.tar.gz
- task: JavaToolInstaller@0
inputs:
verisonSpec: "14"
jdkArchitectureOption: x64
jdkSourceOption: LocalDirectory
jdkFile: "zulu14.28.21-ca-jdk14.0.1-linux_x64.tar.gz"
jdkDestinationDirectory: '$(agent.toolsDirectory)/jdk14'
cleanDestinationDirectory: true
- task: Gradle@2
displayName: 'Check'
inputs:
workingDirectory: ''
gradleWrapperFile: 'gradlew'
options: '--info --stacktrace -PlogTests'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
tasks: 'check'
- task: Gradle@2
displayName: 'JacocoRootReport'
inputs:
workingDirectory: ''
gradleWrapperFile: 'gradlew'
options: '--info --stacktrace -PlogTests'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
tasks: 'jacocoRootReport'
# Stop the Gradle daemon to ensure no files are left open (impacting the save cache
# operation later)
- script: './gradlew --stop'
displayName: 'Stop Gradle Daemon'
- bash: bash <(curl -s https://codecov.io/bash) || echo 'Codecov failed to upload'
displayName: 'CodeCov'
workingDirectory: ''
- job: MacOS
pool:
vmImage: macOS-10.14
steps:
- task: Cache@2
displayName: 'Restore Gradle Build Cache'
inputs:
key: 'gradle | "$(Agent.OS)"'
restoreKeys: gradle
path: $(GRADLE_USER_HOME)
- bash: wget https://cdn.azul.com/zulu/bin/zulu14.28.21-ca-jdk14.0.1-macosx_x64.tar.gz
- task: JavaToolInstaller@0
inputs:
verisonSpec: "14"
jdkArchitectureOption: x64
jdkSourceOption: LocalDirectory
jdkFile: "zulu14.28.21-ca-jdk14.0.1-macosx_x64.tar.gz"
jdkDestinationDirectory: '$(agent.toolsDirectory)/jdk14'
cleanDestinationDirectory: true
- task: Gradle@2
displayName: 'Check'
inputs:
workingDirectory: ''
gradleWrapperFile: 'gradlew'
options: '--info --stacktrace -PlogTests'
publishJUnitResults: false
tasks: 'check'
- task: Gradle@2
displayName: 'JacocoRootReport'
inputs:
workingDirectory: ''
gradleWrapperFile: 'gradlew'
options: '--info --stacktrace -PlogTests'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
tasks: 'jacocoRootReport'
# Stop the Gradle daemon to ensure no files are left open (impacting the save cache
# operation later)
- script: './gradlew --stop'
displayName: 'Stop Gradle Daemon'
- job: Windows
pool:
vmImage: windows-2019
steps:
# SilentlyContinue is important because it makes the download go WAY faster
- powershell: "$ProgressPreference = 'SilentlyContinue'\nInvoke-WebRequest -URI https://cdn.azul.com/zulu/bin/zulu14.28.21-ca-jdk14.0.1-win_x64.zip -OutFile zulu14.28.21-ca-jdk14.0.1-win_x64.zip"
- task: JavaToolInstaller@0
inputs:
verisonSpec: "14"
jdkArchitectureOption: x64
jdkSourceOption: LocalDirectory
jdkFile: "zulu14.28.21-ca-jdk14.0.1-win_x64.zip"
jdkDestinationDirectory: '$(agent.toolsDirectory)/jdk14'
cleanDestinationDirectory: true
- task: Cache@2
displayName: 'Restore Gradle Build Cache'
inputs:
key: 'gradle | "$(Agent.OS)"'
restoreKeys: gradle
path: $(GRADLE_USER_HOME)
- task: Gradle@2
displayName: 'Check'
inputs:
workingDirectory: ''
gradleWrapperFile: 'gradlew'
options: '--info --stacktrace --scan -PlogTests'
publishJUnitResults: false
tasks: 'check'
- task: Gradle@2
displayName: 'JacocoRootReport'
inputs:
workingDirectory: ''
gradleWrapperFile: 'gradlew'
options: '--info --stacktrace -PlogTests'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
tasks: 'jacocoRootReport'
# Stop the Gradle daemon to ensure no files are left open (impacting the save cache
# operation later)
- script: './gradlew --stop'
displayName: 'Stop Gradle Daemon'