forked from GlowstoneMC/Glowstone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
47 lines (39 loc) · 1.27 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
# Maven
# Build your Java project and run tests with Apache Maven.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/java
trigger:
branches:
include:
- "*"
jobs:
- job: build8
displayName: "Build (Java 8)"
pool:
vmImage: ubuntu-16.04
variables:
jdk_version: 1.8
artifact_suffix: ' (Java 8)'
steps:
- template: etc/azure-templates/build.yml
# No coverage reports needed on Java 8
- template: etc/azure-templates/publish-artifacts.yml
- job: build11
displayName: "Build (Java 11)"
pool:
vmImage: ubuntu-16.04
variables:
JAVA_TOOL_OPTIONS: "-XX:+UseG1GC" # No aggressive opts in JDK 11
jdk_version: 1.11
artifact_suffix: ''
steps:
- template: etc/azure-templates/build.yml
- task: PublishCodeCoverageResults@1
displayName: "Publish Coverage Results"
inputs:
codeCoverageTool: "jaCoCo"
summaryFileLocation: "$(System.DefaultWorkingDirectory)/target/site/jacoco/jacoco.xml"
reportDirectory: "$(System.DefaultWorkingDirectory)/target/site/jacoco"
additionalCodeCoverageFiles: "$(System.DefaultWorkingDirectory)/**/jacoco.exec"
failIfCoverageEmpty: false
- template: etc/azure-templates/publish-artifacts.yml