forked from docker-library/openjdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (39 loc) · 1.05 KB
/
.travis.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
language: bash
services: docker
env:
- VERSION=12 VARIANT=oracle
- VERSION=12 VARIANT=alpine
- VERSION=11 VARIANT=oracle
- VERSION=11
- VERSION=11 VARIANT=slim
- VERSION=10 VARIANT=oracle
- VERSION=10
- VERSION=10 VARIANT=slim
- VERSION=8
- VERSION=8 VARIANT=slim
- VERSION=8 VARIANT=alpine
- VERSION=7
- VERSION=7 VARIANT=slim
- VERSION=7 VARIANT=alpine
install:
- git clone https://github.com/docker-library/official-images.git ~/official-images
before_script:
- env | sort
- cd "$VERSION"
- imageBase="openjdk:$VERSION"
- imageSuffix="${VARIANT:+-$VARIANT}"
script:
- |
(
set -Eeuo pipefail
set -x
docker build -t "$imageBase-jdk$imageSuffix" "jdk${VARIANT:+/$VARIANT}"
~/official-images/test/run.sh "$imageBase-jdk$imageSuffix"
if [ -d "jre${VARIANT:+/$VARIANT}" ]; then
docker build -t "$imageBase-jre$imageSuffix" "jre${VARIANT:+/$VARIANT}"
~/official-images/test/run.sh "$imageBase-jre$imageSuffix"
fi
)
after_script:
- docker images
# vim:set et ts=2 sw=2: