forked from docker-library/buildpack-deps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (31 loc) · 909 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
language: bash
services: docker
env:
- VERSION=bionic
- VERSION=bullseye
- VERSION=buster
- VERSION=cosmic
- VERSION=disco
- VERSION=eoan
- VERSION=jessie
- VERSION=sid
- VERSION=stretch
- 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'*':'* ]]
- travis_retry docker build -t "$image-curl" curl
- travis_retry docker build -t "$image-scm" scm
- travis_retry docker build -t "$image" .
- ~/official-images/test/run.sh "$image"
after_script:
- docker images
# vim:set et ts=2 sw=2: