0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2024-11-18 02:56:42 +01:00
nextcloud-docker/.travis.yml

57 lines
1.4 KiB
YAML
Raw Normal View History

2017-06-23 16:12:44 +02:00
dist: trusty
sudo: required
2017-03-14 10:48:58 +01:00
services: docker
2017-06-23 16:12:44 +02:00
language: bash
2017-03-14 10:48:58 +01:00
2017-08-07 16:27:15 +02:00
branches:
only:
- master
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
- 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:
2017-04-01 16:39:41 +02:00
- travis_retry docker build -t "$image" "${VERSION}/${VARIANT}"
2017-03-14 10:48:58 +01:00
- ~/official-images/test/run.sh "$image"
- .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:
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
2017-08-27 10:58:21 +02:00
env: VERSION=11.0 VARIANT=fpm ARCH=amd64
2017-06-29 12:57:03 +02:00
- 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 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