2017-03-14 10:48:58 +01:00
|
|
|
language: bash
|
|
|
|
services: docker
|
|
|
|
|
|
|
|
env:
|
2017-06-03 13:56:18 +02:00
|
|
|
- VERSION=12.0 VARIANT=fpm
|
|
|
|
- VERSION=12.0 VARIANT=apache
|
2017-03-14 10:48:58 +01:00
|
|
|
- VERSION=11.0 VARIANT=fpm
|
|
|
|
- VERSION=11.0 VARIANT=apache
|
|
|
|
- VERSION=10.0 VARIANT=fpm
|
|
|
|
- VERSION=10.0 VARIANT=apache
|
|
|
|
|
|
|
|
install:
|
|
|
|
- git clone https://github.com/docker-library/official-images.git ~/official-images
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- env | sort
|
|
|
|
- image="nextcloud:${VERSION}${VARIANT:+-$VARIANT}"
|
2017-04-01 16:39:41 +02:00
|
|
|
- hash_before=$(git write-tree)
|
2017-03-14 10:48:58 +01:00
|
|
|
|
|
|
|
script:
|
2017-04-01 16:39:41 +02:00
|
|
|
# Test Image
|
|
|
|
- travis_retry docker build -t "$image" "${VERSION}/${VARIANT}"
|
2017-03-14 10:48:58 +01:00
|
|
|
- ~/official-images/test/run.sh "$image"
|
|
|
|
|
2017-04-01 16:39:41 +02:00
|
|
|
# Test generate-stackbrew-library.sh
|
|
|
|
- ./generate-stackbrew-library.sh
|
|
|
|
|
|
|
|
# Test update.sh
|
|
|
|
- ./update.sh
|
|
|
|
- bash -c "[[ $hash_before = $(git add -A && git write-tree) ]]"
|
|
|
|
|
2017-03-14 10:48:58 +01:00
|
|
|
after_script:
|
|
|
|
- docker images
|