2017-03-14 09:48:58 +00:00
|
|
|
language: bash
|
|
|
|
services: docker
|
|
|
|
|
|
|
|
env:
|
|
|
|
- VERSION=11.0 VARIANT=fpm
|
|
|
|
- VERSION=11.0 VARIANT=apache
|
|
|
|
- VERSION=10.0 VARIANT=fpm
|
|
|
|
- VERSION=10.0 VARIANT=apache
|
|
|
|
- VERSION=9.0 VARIANT=fpm
|
|
|
|
- VERSION=9.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 14:39:41 +00:00
|
|
|
- hash_before=$(git write-tree)
|
2017-03-14 09:48:58 +00:00
|
|
|
|
|
|
|
script:
|
2017-04-01 14:39:41 +00:00
|
|
|
# Test Image
|
|
|
|
- travis_retry docker build -t "$image" "${VERSION}/${VARIANT}"
|
2017-03-14 09:48:58 +00:00
|
|
|
- ~/official-images/test/run.sh "$image"
|
|
|
|
|
2017-04-01 14:39:41 +00: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 09:48:58 +00:00
|
|
|
after_script:
|
|
|
|
- docker images
|