python_sonar/.travis.yml

42 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2015-03-13 01:08:05 +08:00
language: bash
services: docker
2015-03-13 01:08:05 +08:00
env:
2016-07-02 01:30:37 +08:00
- VERSION=3.6 VARIANT=
- VERSION=3.6 VARIANT=slim
- VERSION=3.6 VARIANT=alpine
2015-07-18 01:17:57 +08:00
- VERSION=3.5 VARIANT=
- VERSION=3.5 VARIANT=slim
2015-12-29 19:13:25 +08:00
- VERSION=3.5 VARIANT=alpine
2015-03-13 01:08:05 +08:00
- VERSION=3.4 VARIANT=
- VERSION=3.4 VARIANT=slim
- VERSION=3.4 VARIANT=alpine
- 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=alpine
- VERSION=3.3 VARIANT=wheezy
2015-03-13 01:08:05 +08:00
- VERSION=2.7 VARIANT=
- VERSION=2.7 VARIANT=slim
2016-01-12 23:58:22 +08:00
- VERSION=2.7 VARIANT=alpine
- 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: