forked from docker-library/buildpack-deps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (29 loc) · 832 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
language: bash
services: docker
env:
- VERSION=jessie
- VERSION=precise
- VERSION=sid
- VERSION=stretch
- VERSION=trusty
- VERSION=wheezy
- VERSION=wily
- VERSION=xenial
install:
- git clone https://github.com/docker-library/official-images.git ~/official-images
before_script:
- env | sort
- cd "$VERSION"
- export image="buildpack-deps:$VERSION"
script:
- test "$(head -n1 Dockerfile)" = "FROM $image-scm"
&& test "$(head -n1 scm/Dockerfile)" = "FROM $image-curl"
&& [[ "$(head -n1 curl/Dockerfile)" == 'FROM debian:'*
|| "$(head -n1 curl/Dockerfile)" == 'FROM ubuntu'*':'* ]]
- docker build -t "$image-curl" curl
- docker build -t "$image-scm" scm
- docker build -t "$image" .
- ~/official-images/test/run.sh "$image"
after_script:
- docker images
# vim:set et ts=2 sw=2: