1
0
Fork 0
mirror of https://github.com/docker-library/ruby.git synced 2022-11-09 11:41:34 -05:00
docker-library--ruby/.travis.yml

50 lines
1.3 KiB
YAML
Raw Normal View History

2015-04-02 17:14:02 -04:00
language: bash
services: docker
2015-04-02 17:14:02 -04:00
env:
2017-10-21 19:56:02 -04:00
- VERSION=2.5-rc VARIANT=stretch
- VERSION=2.5-rc VARIANT=stretch/slim
- VERSION=2.5-rc VARIANT=alpine3.7
2017-10-21 19:56:02 -04:00
- VERSION=2.5-rc VARIANT=alpine3.6
2017-08-04 15:41:04 -04:00
- VERSION=2.4 VARIANT=stretch
- VERSION=2.4 VARIANT=stretch/slim
- VERSION=2.4 VARIANT=jessie
- VERSION=2.4 VARIANT=jessie/slim
- VERSION=2.4 VARIANT=alpine3.7
2017-08-04 15:42:25 -04:00
- VERSION=2.4 VARIANT=alpine3.6
- VERSION=2.4 VARIANT=alpine3.4
- VERSION=2.3 VARIANT=jessie
- VERSION=2.3 VARIANT=jessie/slim
- VERSION=2.3 VARIANT=alpine3.4
- VERSION=2.2 VARIANT=jessie
- VERSION=2.2 VARIANT=jessie/slim
- VERSION=2.2 VARIANT=alpine3.4
2015-04-02 17:14:02 -04:00
install:
- git clone --depth 1 https://github.com/docker-library/official-images.git ~/official-images
2015-04-02 17:14:02 -04:00
before_script:
- env | sort
- cd "$VERSION/$VARIANT"
- slash='/'; image="ruby:${VERSION}-${VARIANT//$slash/-}"
2015-04-02 17:14:02 -04:00
script:
- |
(
set -Eeuo pipefail
set -x
travis_retry docker build -t "$image" .
~/official-images/test/run.sh "$image"
if [ -d onbuild ]; then
onbuildFrom="$(awk 'toupper($1) == "FROM" { print $2; exit }' onbuild/Dockerfile)"
docker tag "$image" "$onbuildFrom"
docker build -t "$image-onbuild" onbuild
~/official-images/test/run.sh "$image-onbuild"
fi
)
2015-04-02 17:14:02 -04:00
after_script:
- docker images
2015-04-02 17:14:02 -04:00
# vim:set et ts=2 sw=2: