forked from docker-library/ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
29 lines (23 loc) · 747 Bytes
/
Copy path.travis.yml
File metadata and controls
29 lines (23 loc) · 747 Bytes
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
language: bash
services: docker
env:
- VERSION=2.2 VARIANT=
- VERSION=2.2 VARIANT=slim
- VERSION=2.1 VARIANT=
- VERSION=2.1 VARIANT=slim
- VERSION=2.0 VARIANT=
- VERSION=2.0 VARIANT=slim
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
after_script:
- docker images
# vim:set et ts=2 sw=2: