2015-03-13 01:08:05 +08:00
|
|
|
language: bash
|
|
|
|
|
|
|
|
# for secret experimental features ;)
|
2015-07-23 01:35:24 +08:00
|
|
|
sudo: 9000
|
2015-03-13 01:08:05 +08:00
|
|
|
|
|
|
|
env:
|
2015-07-18 01:17:57 +08:00
|
|
|
- VERSION=3.5 VARIANT=
|
|
|
|
- VERSION=3.5 VARIANT=slim
|
2015-03-13 01:08:05 +08:00
|
|
|
- VERSION=3.4 VARIANT=
|
2015-04-03 04:30:53 +08:00
|
|
|
- VERSION=3.4 VARIANT=slim
|
|
|
|
- VERSION=3.4 VARIANT=wheezy
|
2015-03-13 01:08:05 +08:00
|
|
|
- VERSION=3.3 VARIANT=
|
2015-04-03 04:30:53 +08:00
|
|
|
- VERSION=3.3 VARIANT=slim
|
|
|
|
- VERSION=3.3 VARIANT=wheezy
|
2015-05-24 08:52:39 +08:00
|
|
|
- VERSION=3.2 VARIANT=
|
|
|
|
- VERSION=3.2 VARIANT=slim
|
|
|
|
- VERSION=3.2 VARIANT=wheezy
|
2015-03-13 01:08:05 +08:00
|
|
|
- VERSION=2.7 VARIANT=
|
2015-04-03 04:30:53 +08:00
|
|
|
- VERSION=2.7 VARIANT=slim
|
|
|
|
- VERSION=2.7 VARIANT=wheezy
|
2015-03-13 01:08:05 +08:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2015-08-08 07:32:23 +08:00
|
|
|
after_script:
|
|
|
|
- docker images
|
|
|
|
|
2015-03-13 01:08:05 +08:00
|
|
|
# vim:set et ts=2 sw=2:
|