python_sonar/.travis.yml

32 lines
842 B
YAML
Raw Normal View History

2015-03-13 01:08:05 +08:00
language: bash
# for secret experimental features ;)
dist: trusty
env:
- 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-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
# vim:set et ts=2 sw=2: