forked from docker-library/golang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (30 loc) · 1021 Bytes
/
.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
language: bash
services: docker
env:
- VERSION=1.7 VARIANT=
- VERSION=1.7 VARIANT=wheezy
- VERSION=1.7 VARIANT=alpine
- VERSION=1.6 VARIANT=
- VERSION=1.6 VARIANT=wheezy
- VERSION=1.6 VARIANT=alpine
- VERSION=1.5 VARIANT=
- VERSION=1.5 VARIANT=wheezy
- VERSION=1.5 VARIANT=alpine
install:
- git clone https://github.com/docker-library/official-images.git ~/official-images
before_script:
- env | sort
- cd "$VERSION"
- image="$(awk '$1 == "FROM" { print $2; exit }' onbuild/Dockerfile)${VARIANT:+-$VARIANT}"
script:
- docker build -t "$image" "${VARIANT:-.}"
- ~/official-images/test/run.sh "$image"
# the "onbuild" variant has to happen with the base variant because it's FROM it
- true && [ "$VARIANT" ] || docker build -t "${image}-onbuild" onbuild
# the "cross" variant has to happen with the base variant because it's FROM it
- if [ -d cross -a -z "$VARIANT" ]; then
docker build -t "${image}-cross" cross;
fi
after_script:
- docker images
# vim:set et ts=2 sw=2: