Nextcloud-Docker/.travis.yml

49 lines
1.1 KiB
YAML
Raw Normal View History

2017-06-23 14:12:44 +00:00
dist: trusty
sudo: required
2017-03-14 09:48:58 +00:00
services: docker
2017-06-23 14:12:44 +00:00
language: bash
2017-03-14 09:48:58 +00:00
install:
- git clone https://github.com/docker-library/official-images.git ~/official-images
before_script:
- env | sort
- image="nextcloud:${VERSION}${VARIANT:+-$VARIANT}"
script:
2017-04-01 14:39:41 +00:00
- travis_retry docker build -t "$image" "${VERSION}/${VARIANT}"
2017-03-14 09:48:58 +00:00
- ~/official-images/test/run.sh "$image"
after_script:
- docker images
2017-06-23 14:12:44 +00: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
env: VERSION=10.0 VARIANT=fpm
- env: VERSION=10.0 VARIANT=apache
- env: VERSION=11.0 VARIANT=fpm
- env: VERSION=11.0 VARIANT=apache
- env: VERSION=12.0 VARIANT=fpm
- env: VERSION=12.0 VARIANT=apache