-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
72 lines (69 loc) · 2.52 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
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
strategy:
matrix:
Java8:
J_JAVA_MAJOR: '8'
J_JDKS: '8 9'
Java9:
J_JAVA_MAJOR: '9'
J_JDKS: '8 9'
Java10:
J_JAVA_MAJOR: '10'
J_JDKS: '8 9 10'
Java11:
J_JAVA_MAJOR: '11'
J_JDKS: '8 9 11'
Java12:
J_JAVA_MAJOR: '12'
J_JDKS: '8 9 12'
Java13:
J_JAVA_MAJOR: '13'
J_JDKS: '8 9 13'
Java14:
J_JAVA_MAJOR: '14'
J_JDKS: '8 9 14'
Java15:
J_JAVA_MAJOR: '15'
J_JDKS: '8 9 15'
Java16:
J_JAVA_MAJOR: '16'
J_JDKS: '8 9 16'
Java17:
J_JAVA_MAJOR: '17'
J_JDKS: '8 9 17'
Java18:
J_JAVA_MAJOR: '18'
J_JDKS: '8 9 18'
Java19:
J_JAVA_MAJOR: '19'
J_JDKS: '8 9 19'
Java20:
J_JAVA_MAJOR: '20'
J_JDKS: '8 9 20'
steps:
- script: curl -L https://api.nest.saker.build/bundle/download/saker.build-v$(curl -s https://mirror.nest.saker.build/badges/saker.build/latest.txt) -o saker.build.jar
displayName: 'Download saker.build'
- script: |
set -e
curl -s https://gist.githubusercontent.com/Sipkab/1505a8659af20003ae09295e99d3cba3/raw/azure_ubuntu_jdksetup_variables.sh -o /tmp/azure_ubuntu_jdksetup_variables.sh
bash /tmp/azure_ubuntu_jdksetup_variables.sh $(J_JDKS)
displayName: 'Setup JDKs'
- script: java -jar saker.build.jar -bd build "-EUsaker.java.jre.install.locations=$(JAVA_HOME_8_X64);$(JAVA_HOME_9_X64);$(JAVA_HOME_10_X64);$(JAVA_HOME_11_X64);$(JAVA_HOME_12_X64);$(JAVA_HOME_13_X64);$(JAVA_HOME_14_X64);$(JAVA_HOME_15_X64);$(JAVA_HOME_16_X64);$(JAVA_HOME_17_X64);$(JAVA_HOME_18_X64);$(JAVA_HOME_19_X64);$(JAVA_HOME_20_X64)" -trace pwd://build/build_test.trace testjava$(J_JAVA_MAJOR)
displayName: 'Test JDK $(J_JAVA_MAJOR)'
- task: PublishBuildArtifacts@1
condition: always()
displayName: 'Publish test trace'
inputs:
pathtoPublish: build/build_test.trace
artifactName: 'test_trace_$(J_JAVA_MAJOR)'
- script: java -jar saker.build.jar -bd build "-EUsaker.java.jre.install.locations=$(JAVA_HOME_8_X64);$(JAVA_HOME_9_X64);$(JAVA_HOME_10_X64);$(JAVA_HOME_11_X64);$(JAVA_HOME_12_X64);$(JAVA_HOME_13_X64);$(JAVA_HOME_14_X64);$(JAVA_HOME_15_X64);$(JAVA_HOME_16_X64);$(JAVA_HOME_17_X64);$(JAVA_HOME_18_X64);$(JAVA_HOME_19_X64);$(JAVA_HOME_20_X64)" -trace pwd://build/build_export.trace exportall
displayName: 'Export'
- task: PublishBuildArtifacts@1
condition: always()
displayName: 'Publish export trace'
inputs:
pathtoPublish: build/build_export.trace
artifactName: 'export_trace_$(J_JAVA_MAJOR)'