forked from docker-library/haproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (36 loc) · 1004 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
37
38
39
40
41
42
language: bash
services: docker
env:
- VERSION=1.9 VARIANT=
- VERSION=1.9 ARCH=i386
- VERSION=1.9 VARIANT=alpine
- VERSION=1.8 VARIANT=
- VERSION=1.8 ARCH=i386
- VERSION=1.8 VARIANT=alpine
- VERSION=1.7 VARIANT=
- VERSION=1.7 ARCH=i386
- VERSION=1.7 VARIANT=alpine
- VERSION=1.6 VARIANT=
- VERSION=1.6 ARCH=i386
- VERSION=1.6 VARIANT=alpine
- VERSION=1.5 VARIANT=
- VERSION=1.5 ARCH=i386
- VERSION=1.5 VARIANT=alpine
install:
- git clone https://github.com/docker-library/official-images.git ~/official-images
before_script:
- env | sort
- cd "$VERSION${VARIANT+/$VARIANT}"
- image="haproxy:${VERSION}${VARIANT+-$VARIANT}"
- |
if [ -n "$ARCH" ]; then
from="$(awk '$1 == toupper("FROM") { print $2 }' Dockerfile)"
docker pull "$ARCH/$from"
docker tag "$ARCH/$from" "$from"
fi
script:
- travis_retry docker build -t "$image" .
- ~/official-images/test/run.sh "$image"
after_script:
- docker images
# vim:set et ts=2 sw=2: