forked from typetools/jdk
-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
192 lines (184 loc) · 7.58 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
jobs:
- job: build_jdk
pool:
vmImage: 'ubuntu-latest'
container: wmdietl/cf-ubuntu-jdk17-plus:latest
steps:
- bash: |
whoami
git config --get remote.origin.url
pwd
ls -al
env | sort
displayName: show environment
- bash: |
wget https://builds.shipilev.net/jtreg/jtreg-6.2%2B1.zip -O /tmp/$USER/jtreg.zip
unzip /tmp/$USER/jtreg.zip -d /tmp/$USER/
chmod +x /tmp/$USER/jtreg/bin/jtdiff /tmp/$USER/jtreg/bin/jtreg
displayName: download jtreg
- bash: pwd && ls && bash ./configure --with-jtreg=/tmp/$USER/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: wmdietl/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: |
wget https://builds.shipilev.net/jtreg/jtreg-6.2%2B1.zip -O /tmp/$USER/jtreg.zip
unzip /tmp/$USER/jtreg.zip -d /tmp/$USER/
chmod +x /tmp/$USER/jtreg/bin/jtdiff /tmp/$USER/jtreg/bin/jtreg
displayName: download jtreg
- 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 --filter=blob:none -q https://github.com/eisop-plume-lib/plume-scripts.git ; \
fi
displayName: plume-scripts
# This creates ../jdk17u .
# If the depth is too small, the merge will fail.
- bash: |
set -ex
/tmp/$USER/plume-scripts/git-clone-related typetools jdk17u ../jdk17u -q --filter=blob:none
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
eval `/tmp/$USER/plume-scripts/ci-info eisop`
cd ../jdk17u && git pull --no-edit https://github.com/${CI_ORGANIZATION}/jdk ${CI_BRANCH} || (git --version && git show && echo "Merge failed; see 'Pull request merge conflicts' at https://github.com/eisop/jdk/blob/master/README" && false)
displayName: git merge
- bash: cd ../jdk17u && export JT_HOME=/tmp/$USER/jtreg && bash ./configure --with-jtreg=/tmp/$USER/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_jdk8
timeoutInMinutes: 105
pool:
vmImage: 'ubuntu-latest'
container: wmdietl/cf-ubuntu-jdk8:latest
steps:
- checkout: self
fetchDepth: 25
- bash: mkdir -p /tmp/$USER && git -C /tmp/$USER clone --depth 1 -q https://github.com/eisop-plume-lib/plume-scripts.git
displayName: clone plume-scripts
- bash: /tmp/$USER/plume-scripts/git-clone-related eisop checker-framework
displayName: clone checker-framework
- bash: (cd ../checker-framework && checker/bin-devel/test-cftests-all.sh)
displayName: test-cftests-all.sh
- job: test_cftests_all_jdk11
timeoutInMinutes: 105
pool:
vmImage: 'ubuntu-latest'
container: wmdietl/cf-ubuntu-jdk11:latest
steps:
- checkout: self
fetchDepth: 25
- bash: mkdir -p /tmp/$USER && git -C /tmp/$USER clone --filter=blob:none -q https://github.com/eisop-plume-lib/plume-scripts.git
displayName: clone plume-scripts
- bash: /tmp/$USER/plume-scripts/git-clone-related eisop checker-framework
displayName: clone checker-framework
# test-cftests-all.sh sometimes runs out of memory, 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: 105
pool:
vmImage: 'ubuntu-latest'
container: wmdietl/cf-ubuntu-jdk17:latest
steps:
- checkout: self
fetchDepth: 25
- bash: mkdir -p /tmp/$USER && git -C /tmp/$USER clone --filter=blob:none -q https://github.com/eisop-plume-lib/plume-scripts.git
displayName: clone plume-scripts
- bash: /tmp/$USER/plume-scripts/git-clone-related eisop checker-framework
displayName: clone checker-framework
- bash: (cd ../checker-framework && checker/bin-devel/test-cftests-all.sh)
displayName: test-cftests-all.sh
- job: test_cftests_all_jdk_latest
timeoutInMinutes: 105
pool:
vmImage: 'ubuntu-latest'
container: wmdietl/cf-ubuntu-jdk-latest:latest
steps:
- checkout: self
fetchDepth: 25
- bash: mkdir -p /tmp/$USER && git -C /tmp/$USER clone --filter=blob:none -q https://github.com/eisop-plume-lib/plume-scripts.git
displayName: clone plume-scripts
- bash: /tmp/$USER/plume-scripts/git-clone-related eisop 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: wmdietl/cf-ubuntu-jdk17:latest
timeoutInMinutes: 70
steps:
- checkout: self
fetchDepth: 25
- bash: mkdir -p /tmp/$USER && git -C /tmp/$USER clone --filter=blob:none -q https://github.com/eisop-plume-lib/plume-scripts.git
displayName: clone plume-scripts
- bash: /tmp/$USER/plume-scripts/git-clone-related eisop 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: wmdietl/cf-ubuntu-jdk17:latest
steps:
- checkout: self
fetchDepth: 25
- bash: mkdir -p /tmp/$USER && git -C /tmp/$USER clone --filter=blob:none -q https://github.com/eisop-plume-lib/plume-scripts.git
displayName: clone plume-scripts
- bash: /tmp/$USER/plume-scripts/git-clone-related eisop checker-framework
displayName: clone checker-framework
- bash: (cd ../checker-framework && checker/bin-devel/test-plume-lib.sh)
displayName: test-plume-lib.sh