forked from openjdk/jdk17u
-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipelines.yml
202 lines (194 loc) · 8.06 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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
variables:
system.debug: true
jobs:
- job: build_jdk
pool:
vmImage: 'ubuntu-latest'
container: mdernst/cf-ubuntu-jdk17-plus:latest
steps:
- bash: |
whoami
git config --get remote.origin.url
pwd
ls -al
env | sort
displayName: show environment
- bash: pwd && ls && bash ./configure --with-jtreg=/usr/share/jtreg --disable-warnings-as-errors
displayName: configure
- bash: make jdk
timeoutInMinutes: 90
displayName: make jdk
## This works only after `make images`
# - bash: build/*/images/jdk/bin/java -version
# displayName: version
## Don't run tests, which pass only with old version of tools (compilers, etc.).
# - bash: make -C /jdk run-test-tier1
# displayName: make run-test-tier1
- job: build_jdk17u
pool:
vmImage: 'ubuntu-latest'
container: mdernst/cf-ubuntu-jdk17-plus:latest
timeoutInMinutes: 0
steps:
- bash: |
whoami
git config --get remote.origin.url
pwd
ls -al
env | sort
displayName: show environment
- bash: |
set -ex
if [ -d /tmp/$USER/git-scripts ]; \
then git -C /tmp/$USER/git-scripts pull -q > /dev/null 2>&1 ; \
else mkdir -p /tmp/$USER && git -C /tmp/$USER clone --depth=1 -q https://github.com/plume-lib/git-scripts.git ; \
fi
displayName: git-scripts
- bash: |
set -ex
if [ -d /tmp/$USER/plume-scripts ]; \
then git -C /tmp/$USER/plume-scripts pull -q > /dev/null 2>&1 ; \
else mkdir -p /tmp/$USER && git -C /tmp/$USER clone --depth=1 -q https://github.com/plume-lib/plume-scripts.git ; \
fi
displayName: plume-scripts
# This creates ../jdk17u .
# If the depth is too small, the merge will fail. However, we cannot use "--filter=blob:none"
# because that leads to "fatal: remote error: filter 'combine' not supported".
- bash: |
set -ex
pwd
ls -al .. || true
ls -al ../jdk17u || true
df .
/tmp/$USER/git-scripts/git-clone-related typetools jdk17u ../jdk17u --depth 999
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
git config --global core.longpaths true
git config --global core.protectNTFS false
cd ../jdk17u && git status
git diff --exit-code
echo $?
displayName: clone-related-jdk17u
- bash: |
set -ex
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
git config --global pull.ff true
git config --global pull.rebase false
git config --global core.longpaths true
git config --global core.protectNTFS false
eval `/tmp/$USER/plume-scripts/ci-info typetools`
cd ../jdk17u && git status
echo "About to run: git pull --no-edit https://github.com/${CI_ORGANIZATION}/jdk ${CI_BRANCH}"
cd ../jdk17u && git pull --no-edit https://github.com/${CI_ORGANIZATION}/jdk ${CI_BRANCH} || (git --version && git show && git status && echo "Merge failed; see 'Pull request merge conflicts' at https://github.com/typetools/jdk/blob/master/README.md" && false)
displayName: git merge
- bash: cd ../jdk17u && export JT_HOME=/usr/share/jtreg && bash ./configure --with-jtreg --disable-warnings-as-errors
displayName: configure
- bash: cd ../jdk17u && make jdk
displayName: make jdk
## This works only after `make images`
# - bash: cd ../jdk17u && build/*/images/jdk/bin/java -version
# displayName: version
# - bash: make -C /jdk17u run-test-tier1
# timeoutInMinutes: 0
# displayName: make run-test-tier1
# - bash: make -C /jdk17u :test/jdk:tier1
## Temporarily comment out because of trouble finding junit and jasm
# - bash: cd ../jdk17u && make run-test TEST="jtreg:test/jdk:tier1"
# timeoutInMinutes: 0
# displayName: make run-test
- job: test_cftests_all_jdk11
timeoutInMinutes: 120
pool:
vmImage: 'ubuntu-latest'
container: mdernst/cf-ubuntu-jdk11:latest
steps:
- checkout: self
fetchDepth: 25
- bash: mkdir -p /tmp/$USER && git -C /tmp/$USER clone --depth=1 -q https://github.com/plume-lib/git-scripts.git
displayName: clone git-scripts
- bash: /tmp/$USER/git-scripts/git-clone-related typetools checker-framework
displayName: clone checker-framework
# test-cftests-all.sh sometimes runs out of memory (under JDK 11 and 17), but running its component parts in sequence does not.
# - bash: (cd ../checker-framework && checker/bin-devel/test-cftests-all.sh)
# displayName: test-cftests-all.sh
- bash: (cd ../checker-framework && checker/bin-devel/test-cftests-junit.sh)
displayName: test-cftests-junit.sh
- bash: (cd ../checker-framework && checker/bin-devel/test-cftests-nonjunit.sh)
displayName: test-cftests-nonjunit.sh
- bash: (cd ../checker-framework && checker/bin-devel/test-cftests-inference.sh)
displayName: test-cftests-inference.sh
- bash: (cd ../checker-framework && checker/bin-devel/test-typecheck.sh)
displayName: test-typecheck.sh
## Here is how to create artifacts that can be downloaded.
# - bash: (cd ../checker-framework/checker/build/jtregJdk11/ && tar -czvf all.tgz all)
# condition: succeededOrFailed()
# displayName: tar jtregJdk11/all
# - publish: $(System.DefaultWorkingDirectory)/../checker-framework/checker/build/jtregJdk11/all.tgz
# artifact: all.tgz
# condition: failed()
# displayName: publish all.tgz
- job: test_cftests_all_jdk17
timeoutInMinutes: 120
pool:
vmImage: 'ubuntu-latest'
container: mdernst/cf-ubuntu-jdk17:latest
steps:
- checkout: self
fetchDepth: 25
- bash: mkdir -p /tmp/$USER && git -C /tmp/$USER clone --depth=1 -q https://github.com/plume-lib/git-scripts.git
displayName: clone git-scripts
- bash: /tmp/$USER/git-scripts/git-clone-related typetools checker-framework
displayName: clone checker-framework
# test-cftests-all.sh sometimes runs out of memory (under JDK 11 and 17), but running its component parts in sequence does not.
# - bash: (cd ../checker-framework && checker/bin-devel/test-cftests-all.sh)
# displayName: test-cftests-all.sh
- bash: (cd ../checker-framework && checker/bin-devel/test-cftests-junit.sh)
displayName: test-cftests-junit.sh
- bash: (cd ../checker-framework && checker/bin-devel/test-cftests-nonjunit.sh)
displayName: test-cftests-nonjunit.sh
- bash: (cd ../checker-framework && checker/bin-devel/test-cftests-inference.sh)
displayName: test-cftests-inference.sh
- bash: (cd ../checker-framework && checker/bin-devel/test-typecheck.sh)
displayName: test-typecheck.sh
- job: test_cftests_all_jdk20
timeoutInMinutes: 120
pool:
vmImage: 'ubuntu-latest'
container: mdernst/cf-ubuntu-jdk20:latest
steps:
- checkout: self
fetchDepth: 25
- bash: mkdir -p /tmp/$USER && git -C /tmp/$USER clone --depth=1 -q https://github.com/plume-lib/git-scripts.git
displayName: clone git-scripts
- bash: /tmp/$USER/git-scripts/git-clone-related typetools checker-framework
displayName: clone checker-framework
- bash: (cd ../checker-framework && checker/bin-devel/test-cftests-all.sh)
displayName: test-cftests-all.sh
- job: test_daikon
pool:
vmImage: 'ubuntu-latest'
container: mdernst/cf-ubuntu-jdk17:latest
timeoutInMinutes: 70
steps:
- checkout: self
fetchDepth: 25
- bash: mkdir -p /tmp/$USER && git -C /tmp/$USER clone --depth=1 -q https://github.com/plume-lib/git-scripts.git
displayName: clone git-scripts
- bash: /tmp/$USER/git-scripts/git-clone-related typetools checker-framework
displayName: clone checker-framework
- bash: (cd ../checker-framework && checker/bin-devel/test-daikon.sh)
displayName: test-daikon.sh
- job: test_plume_lib
pool:
vmImage: 'ubuntu-latest'
container: mdernst/cf-ubuntu-jdk17:latest
steps:
- checkout: self
fetchDepth: 25
- bash: mkdir -p /tmp/$USER && git -C /tmp/$USER clone --depth=1 -q https://github.com/plume-lib/git-scripts.git
displayName: clone git-scripts
- bash: /tmp/$USER/git-scripts/git-clone-related typetools checker-framework
displayName: clone checker-framework
- bash: (cd ../checker-framework && checker/bin-devel/test-plume-lib.sh)
displayName: test-plume-lib.sh