2017-06-23 16:12:44 +02:00
|
|
|
language: bash
|
2018-08-19 16:32:22 +02:00
|
|
|
services: docker
|
2017-03-14 10:48:58 +01:00
|
|
|
|
2017-08-07 16:27:15 +02:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
2019-06-17 19:48:58 +02:00
|
|
|
# preload images to avoid timeouts in tests
|
|
|
|
before_install:
|
|
|
|
- docker pull mariadb:10
|
|
|
|
- docker pull postgres:11-alpine
|
|
|
|
|
2017-03-14 10:48:58 +01:00
|
|
|
install:
|
|
|
|
- git clone https://github.com/docker-library/official-images.git ~/official-images
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- env | sort
|
2018-06-19 09:49:13 +02:00
|
|
|
- wget -qO- 'https://github.com/tianon/pgp-happy-eyeballs/raw/master/hack-my-builds.sh' | bash
|
2017-03-14 10:48:58 +01:00
|
|
|
- image="nextcloud:${VERSION}${VARIANT:+-$VARIANT}"
|
2017-06-29 12:57:03 +02:00
|
|
|
- if [[ "$ARCH" == 'i386' ]]; then sed -i -e 's/FROM php/FROM i386\/php/g' "${VERSION}/${VARIANT}/Dockerfile"; fi
|
2017-03-14 10:48:58 +01:00
|
|
|
|
|
|
|
script:
|
2018-06-19 09:49:13 +02:00
|
|
|
- |
|
|
|
|
(
|
|
|
|
set -Eeuo pipefail
|
|
|
|
set -x
|
2019-05-13 15:56:59 +02:00
|
|
|
travis_retry docker build -t "$image" "${VERSION}/${VARIANT}"
|
2019-06-17 19:48:58 +02:00
|
|
|
travis_retry ~/official-images/test/run.sh "$image"
|
2018-06-19 09:49:13 +02:00
|
|
|
.travis/test-example-dockerfiles.sh "$image"
|
|
|
|
)
|
2017-03-14 10:48:58 +01:00
|
|
|
|
|
|
|
after_script:
|
|
|
|
- docker images
|
2017-06-23 16:12:44 +02:00
|
|
|
|
|
|
|
jobs:
|
2019-06-18 14:50:35 +02:00
|
|
|
# https://github.com/docker-library/php/issues/822
|
|
|
|
allow_failures:
|
|
|
|
- env: VERSION=15.0 VARIANT=apache ARCH=i386
|
|
|
|
- env: VERSION=16.0 VARIANT=apache ARCH=i386
|
2019-09-12 11:01:37 +02:00
|
|
|
- env: VERSION=17.0 VARIANT=apache ARCH=i386
|
2019-06-29 15:27:58 +02:00
|
|
|
- env: VERSION=15.0-rc VARIANT=apache ARCH=i386
|
|
|
|
- env: VERSION=16.0-rc VARIANT=apache ARCH=i386
|
2019-09-12 11:01:37 +02:00
|
|
|
- env: VERSION=17.0-rc VARIANT=apache ARCH=i386
|
2019-08-15 23:23:20 +02:00
|
|
|
- env: VERSION=17.0-beta VARIANT=apache ARCH=i386
|
2017-06-23 16:12:44 +02:00
|
|
|
include:
|
|
|
|
- &test-scripts
|
|
|
|
stage: test scripts
|
|
|
|
env: SCRIPT=update.sh
|
|
|
|
services: []
|
|
|
|
install: skip
|
|
|
|
before_script: skip
|
|
|
|
script:
|
|
|
|
- hash_before=$(git write-tree)
|
2019-05-13 20:15:28 +02:00
|
|
|
- travis_retry ./update.sh
|
2017-06-23 16:12:44 +02:00
|
|
|
- bash -c "[[ $hash_before = $(git add -A && git write-tree) ]]"
|
|
|
|
after_script: skip
|
|
|
|
|
|
|
|
- <<: *test-scripts
|
|
|
|
env: SCRIPT=generate-stackbrew-library.sh
|
2018-02-23 18:52:15 +01:00
|
|
|
install:
|
|
|
|
- wget -O "$HOME/bin/bashbrew" https://doi-janky.infosiftr.net/job/bashbrew/lastSuccessfulBuild/artifact/bin/bashbrew-amd64
|
|
|
|
- chmod +x "$HOME/bin/bashbrew"
|
2018-02-14 01:19:07 +01:00
|
|
|
script:
|
2019-05-13 20:15:28 +02:00
|
|
|
- travis_retry ./generate-stackbrew-library.sh
|
2017-06-23 16:12:44 +02:00
|
|
|
|
|
|
|
- stage: test images
|
2019-10-01 09:56:14 +02:00
|
|
|
env: VERSION=15.0 VARIANT=fpm-alpine ARCH=amd64
|
2018-12-10 14:50:59 +01:00
|
|
|
- env: VERSION=15.0 VARIANT=fpm-alpine ARCH=i386
|
|
|
|
- env: VERSION=15.0 VARIANT=fpm ARCH=amd64
|
|
|
|
- env: VERSION=15.0 VARIANT=fpm ARCH=i386
|
|
|
|
- env: VERSION=15.0 VARIANT=apache ARCH=amd64
|
|
|
|
- env: VERSION=15.0 VARIANT=apache ARCH=i386
|
2019-04-26 13:27:26 +02:00
|
|
|
- env: VERSION=16.0 VARIANT=fpm-alpine ARCH=amd64
|
|
|
|
- env: VERSION=16.0 VARIANT=fpm-alpine ARCH=i386
|
|
|
|
- env: VERSION=16.0 VARIANT=fpm ARCH=amd64
|
|
|
|
- env: VERSION=16.0 VARIANT=fpm ARCH=i386
|
|
|
|
- env: VERSION=16.0 VARIANT=apache ARCH=amd64
|
|
|
|
- env: VERSION=16.0 VARIANT=apache ARCH=i386
|
2019-09-26 12:06:22 +02:00
|
|
|
- env: VERSION=17.0 VARIANT=fpm-alpine ARCH=amd64
|
|
|
|
- env: VERSION=17.0 VARIANT=fpm-alpine ARCH=i386
|
|
|
|
- env: VERSION=17.0 VARIANT=fpm ARCH=amd64
|
|
|
|
- env: VERSION=17.0 VARIANT=fpm ARCH=i386
|
|
|
|
- env: VERSION=17.0 VARIANT=apache ARCH=amd64
|
|
|
|
- env: VERSION=17.0 VARIANT=apache ARCH=i386
|