mirror of
https://github.com/nextcloud/docker.git
synced 2024-11-05 22:04:58 +01:00
66 lines
1.9 KiB
YAML
66 lines
1.9 KiB
YAML
dist: trusty
|
|
sudo: required
|
|
|
|
services: docker
|
|
|
|
language: bash
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
|
|
install:
|
|
- git clone https://github.com/docker-library/official-images.git ~/official-images
|
|
|
|
before_script:
|
|
- env | sort
|
|
- image="nextcloud:${VERSION}${VARIANT:+-$VARIANT}"
|
|
- if [[ "$ARCH" == 'i386' ]]; then sed -i -e 's/FROM php/FROM i386\/php/g' "${VERSION}/${VARIANT}/Dockerfile"; fi
|
|
|
|
script:
|
|
- travis_retry docker build -t "$image" "${VERSION}/${VARIANT}"
|
|
- ~/official-images/test/run.sh "$image"
|
|
- .travis/test-example-dockerfiles.sh "$image"
|
|
|
|
after_script:
|
|
- docker images
|
|
|
|
jobs:
|
|
include:
|
|
- &test-scripts
|
|
stage: test scripts
|
|
env: SCRIPT=update.sh
|
|
sudo: false
|
|
services: []
|
|
install: skip
|
|
before_script: skip
|
|
script:
|
|
- hash_before=$(git write-tree)
|
|
- ./update.sh
|
|
- bash -c "[[ $hash_before = $(git add -A && git write-tree) ]]"
|
|
after_script: skip
|
|
|
|
- <<: *test-scripts
|
|
env: SCRIPT=generate-stackbrew-library.sh
|
|
script:
|
|
- ./generate-stackbrew-library.sh
|
|
|
|
- stage: test images
|
|
env: VERSION=11.0 VARIANT=fpm-alpine ARCH=amd64
|
|
- env: VERSION=11.0 VARIANT=fpm-alpine ARCH=i386
|
|
- env: VERSION=11.0 VARIANT=fpm ARCH=amd64
|
|
- env: VERSION=11.0 VARIANT=fpm ARCH=i386
|
|
- env: VERSION=11.0 VARIANT=apache ARCH=amd64
|
|
- env: VERSION=11.0 VARIANT=apache ARCH=i386
|
|
- env: VERSION=12.0 VARIANT=fpm-alpine ARCH=amd64
|
|
- env: VERSION=12.0 VARIANT=fpm-alpine ARCH=i386
|
|
- env: VERSION=12.0 VARIANT=fpm ARCH=amd64
|
|
- env: VERSION=12.0 VARIANT=fpm ARCH=i386
|
|
- env: VERSION=12.0 VARIANT=apache ARCH=amd64
|
|
- env: VERSION=12.0 VARIANT=apache ARCH=i386
|
|
- env: VERSION=13.0 VARIANT=fpm-alpine ARCH=amd64
|
|
- env: VERSION=13.0 VARIANT=fpm-alpine ARCH=i386
|
|
- env: VERSION=13.0 VARIANT=fpm ARCH=amd64
|
|
- env: VERSION=13.0 VARIANT=fpm ARCH=i386
|
|
- env: VERSION=13.0 VARIANT=apache ARCH=amd64
|
|
- env: VERSION=13.0 VARIANT=apache ARCH=i386
|