This repository has been archived by the owner on Sep 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
132 lines (116 loc) · 4.01 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
trigger:
branches:
include:
- '*'
tags:
include:
- '*'
stages:
- stage: Build
jobs:
- job: Linux
pool:
vmImage: ubuntu-16.04
steps:
- task: Gradle@2
displayName: 'Check'
inputs:
workingDirectory: ''
gradleWrapperFile: 'gradlew'
gradleOptions: '-Xmx3072m'
options: '--stacktrace -PlogTests -Pheadless'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.11'
jdkArchitectureOption: 'x64'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
tasks: 'check'
- task: Gradle@2
displayName: 'JacocoRootReport'
inputs:
workingDirectory: ''
gradleWrapperFile: 'gradlew'
gradleOptions: '-Xmx3072m'
options: '--stacktrace -PlogTests -Pheadless'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.11'
jdkArchitectureOption: 'x64'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
tasks: 'jacocoRootReport'
- bash: bash <(curl -s https://codecov.io/bash) || echo 'Codecov failed to upload'
displayName: 'CodeCov'
workingDirectory: ''
env:
CODECOV_TOKEN: $(CODECOV_TOKEN)
- job: MacOS
pool:
vmImage: macOS-10.14
steps:
# The latest version of docker is broken so we need to install an older one
# https://github.com/docker/for-mac/issues/2359
- script: |
DOCKER_URL=https://download.docker.com/mac/stable/31259/Docker.dmg
curl -O -sSL $DOCKER_URL
open -W Docker.dmg && cp -r /Volumes/Docker/Docker.app /Applications
sudo /Applications/Docker.app/Contents/MacOS/Docker --quit-after-install --unattended
nohup /Applications/Docker.app/Contents/MacOS/Docker --unattended &
while ! docker ps 2>/dev/null ; do
sleep 5
echo "Waiting for docker to come up: $(date)"
done
displayName: 'Install Docker'
- task: Gradle@2
displayName: 'Check'
inputs:
workingDirectory: ''
gradleWrapperFile: 'gradlew'
gradleOptions: '-Xmx3072m'
options: '--stacktrace -PlogTests -Pheadless'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.11'
jdkArchitectureOption: 'x64'
publishJUnitResults: false
tasks: 'check'
- task: Gradle@2
displayName: 'JacocoRootReport'
inputs:
workingDirectory: ''
gradleWrapperFile: 'gradlew'
gradleOptions: '-Xmx3072m'
options: '--stacktrace -PlogTests -Pheadless'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.11'
jdkArchitectureOption: 'x64'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
tasks: 'jacocoRootReport'
- job: Windows
pool:
vmImage: windows-2019
steps:
- task: Gradle@2
displayName: 'Check'
inputs:
workingDirectory: ''
gradleWrapperFile: 'gradlew'
gradleOptions: '-Xmx3072m'
options: '--stacktrace -PlogTests -Pheadless -PnoDocker'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.11'
jdkArchitectureOption: 'x64'
publishJUnitResults: false
tasks: 'check'
- task: Gradle@2
displayName: 'JacocoRootReport'
inputs:
workingDirectory: ''
gradleWrapperFile: 'gradlew'
gradleOptions: '-Xmx3072m'
options: '--stacktrace -PlogTests -Pheadless'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.11'
jdkArchitectureOption: 'x64'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
tasks: 'jacocoRootReport'