forked from docker-library/openjdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
26 lines (21 loc) · 819 Bytes
/
.appveyor.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
version: build-{build}.{branch}
image: Visual Studio 2017
environment:
matrix:
- version: 13
variant: windowsservercore-ltsc2016
- version: 12
variant: windowsservercore-ltsc2016
- version: 8
variant: windowsservercore-ltsc2016
install:
- ps: |
[Environment]::SetEnvironmentVariable('dockerImage', ('openjdk:{0}' -f $env:version), [EnvironmentVariableTarget]::Process);
[Environment]::SetEnvironmentVariable('buildDirectory', ('{0}/jdk/windows/{1}' -f $env:version, $env:variant), [EnvironmentVariableTarget]::Process);
build_script:
- cmd: appveyor-retry docker build --pull -t %dockerImage% %buildDirectory%
after_build:
- cmd: docker images
test_script:
- cmd: docker run --rm %dockerImage% java -version
- cmd: docker run --rm %dockerImage% javac -version