python_sonar/.travis.yml

40 lines
1012 B
YAML
Raw Normal View History

2015-03-13 01:08:05 +08:00
language: bash
# for secret experimental features ;)
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=
- VERSION=3.4 VARIANT=slim
- VERSION=3.4 VARIANT=wheezy
2015-03-13 01:08:05 +08:00
- VERSION=3.3 VARIANT=
- 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=
- 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
after_script:
- docker images
2015-03-13 01:08:05 +08:00
# vim:set et ts=2 sw=2: