-
Notifications
You must be signed in to change notification settings - Fork 3
/
azure-pipelines.yml
137 lines (131 loc) · 5.05 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
jobs:
- job: build_jdk
pool:
vmImage: 'ubuntu-latest'
container: mdernst/cf-ubuntu-jdk11-plus-buildjdk: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=/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_jdk11u
pool:
vmImage: 'ubuntu-latest'
container: mdernst/cf-ubuntu-jdk11-plus-buildjdk: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/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 ../jdk11u .
# If the depth is too small, the merge will fail.
- bash: |
set -ex
/tmp/$USER/plume-scripts/git-clone-related typetools jdk11u ../jdk11u -q --depth 99
displayName: clone-related-jdk11u
- bash: |
set -ex
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
eval `/tmp/$USER/plume-scripts/ci-info typetools`
cd ../jdk11u && git pull --no-edit https://github.com/${CI_ORGANIZATION}/jdk ${CI_BRANCH} || (echo "Merge failed; see 'Pull request merge conflicts' at https://github.com/typetools/jdk/blob/master/README" && false)
displayName: git merge
- bash: cd ../jdk11u && export JT_HOME=/jtreg && bash ./configure --with-jtreg --disable-warnings-as-errors
displayName: configure
- bash: cd ../jdk11u && make jdk
displayName: make jdk
## This works only after `make images`
# - bash: cd ../jdk11u && build/*/images/jdk/bin/java -version
# displayName: version
# - bash: make -C /jdk11u run-test-tier1
# timeoutInMinutes: 0
# displayName: make run-test-tier1
# - bash: make -C /jdk11u :test/jdk:tier1
- bash: cd ../jdk11u && make run-test TEST="jtreg:test/jdk:tier1"
timeoutInMinutes: 0
displayName: make run-test
- job: test_cftests_all_jdk8
pool:
vmImage: 'ubuntu-latest'
container: mdernst/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/plume-lib/plume-scripts.git
displayName: clone plume-scripts
- bash: /tmp/$USER/plume-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_cftests_all_jdk11
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/plume-scripts.git
displayName: clone plume-scripts
- bash: /tmp/$USER/plume-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
## 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_daikon
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/plume-scripts.git
displayName: clone plume-scripts
- bash: /tmp/$USER/plume-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-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/plume-scripts.git
displayName: clone plume-scripts
- bash: /tmp/$USER/plume-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