forked from junit-team/junit5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
117 lines (110 loc) · 3.36 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
jobs:
- job: linux_12
displayName: Linux (OpenJDK 12)
pool:
vmImage: 'ubuntu-16.04'
container: openjdk:12
steps:
- checkout: self
fetchDepth: 10
- template: src/azure/azure-gradle-step.yml
parameters:
publishTestResults: true
- job: linux_13
displayName: Linux (OpenJDK 13)
pool:
vmImage: 'ubuntu-16.04'
container: openjdk:13
steps:
- checkout: self
fetchDepth: 10
- template: src/azure/azure-gradle-step.yml
parameters:
continueOnError: true
- job: linux_14
displayName: Linux (OpenJDK 14)
pool:
vmImage: 'ubuntu-16.04'
container: openjdk:14
steps:
- checkout: self
fetchDepth: 10
- template: src/azure/azure-gradle-step.yml
parameters:
continueOnError: true
- job: Mac
pool:
vmImage: 'macOS-10.13'
steps:
- checkout: self
fetchDepth: 10
- template: src/azure/azure-gradle-step.yml
- job: Windows
pool:
vmImage: 'windows-2019'
steps:
- bash: choco install openjdk --version 12.0.1
- checkout: self
fetchDepth: 10
- template: src/azure/azure-gradle-step.yml
parameters:
javahome: 'C:\Program Files\OpenJDK\jdk-12.0.1'
- job: coverage
dependsOn: linux_12
displayName: Coverage
pool:
vmImage: 'ubuntu-16.04'
steps:
- checkout: self
fetchDepth: 10
- bash: |
set -e
export JAVA_HOME="${JAVA_HOME_12_X64}"
export PATH="${JAVA_HOME}/bin:${PATH}"
./gradlew --scan --stacktrace --warning-mode=all -PenableJaCoCo build jacocoRootReport
bash <(curl -s https://codecov.io/bash)
displayName: Coverage
env:
CODECOV_TOKEN: $(codecovToken)
- task: PublishCodeCoverageResults@1
displayName: Publish Coverage Results
inputs:
codeCoverageTool: 'JaCoCo'
summaryFileLocation: '**/build/reports/jacoco/jacocoRootReport/jacocoRootReport.xml'
reportDirectory: '**/build/reports/jacoco/jacocoRootReport/html'
- job: publish_artifacts
dependsOn: linux_12
displayName: Publish Snapshot Artifacts
pool:
vmImage: 'ubuntu-16.04'
steps:
- checkout: self
fetchDepth: 10
- bash: |
set -e
export JAVA_HOME="${JAVA_HOME_12_X64}"
export PATH="${JAVA_HOME}/bin:${PATH}"
./gradlew --scan publish -x check
displayName: Publish
env:
ORG_GRADLE_PROJECT_nexusUsername: $(nexusUsername)
ORG_GRADLE_PROJECT_nexusPassword: $(nexusPassword)
condition: and(succeeded(), and(eq(variables['System.PullRequest.IsFork'], False), and(eq(variables['Build.Reason'], 'IndividualCI'), or(startsWith(variables['Build.SourceBranch'], 'refs/heads/releases/'), eq(variables['Build.SourceBranch'], 'refs/heads/master')))))
- job: update_documentation
dependsOn: linux_12
displayName: Update Snapshot Documentation
pool:
vmImage: 'ubuntu-16.04'
steps:
- checkout: self
fetchDepth: 10
- bash: |
set -e
export JAVA_HOME="${JAVA_HOME_12_X64}"
export PATH="${JAVA_HOME}/bin:${PATH}"
sudo apt-get install graphviz
./src/publishDocumentationSnapshotOnlyIfNecessary.sh
displayName: Publish
env:
GRGIT_USER: $(githubToken)
condition: and(succeeded(), and(eq(variables['System.PullRequest.IsFork'], False), and(eq(variables['Build.Reason'], 'IndividualCI'), eq(variables['Build.SourceBranch'], 'refs/heads/master'))))