From f62ca4395da88ff1d1aef7111e7a36f79113fd28 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Thu, 2 Apr 2015 15:14:02 -0600 Subject: [PATCH] Add initial .travis.yml --- .travis.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..a94355bf3 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,31 @@ +language: bash + +# for secret experimental features ;) +dist: trusty + +env: + - VERSION=2.2 VARIANT= + - VERSION=2.2 VARIANT=slim + - VERSION=2.2 VARIANT=wheezy + - VERSION=2.1 VARIANT= + - VERSION=2.1 VARIANT=slim + - VERSION=2.1 VARIANT=wheezy + - VERSION=2.0 VARIANT= + - VERSION=2.0 VARIANT=slim + - VERSION=2.0 VARIANT=wheezy + +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 + +# vim:set et ts=2 sw=2: