Added Tests for shell scripts

This commit is contained in:
Tilo Spannagel 2017-04-01 16:39:41 +02:00
parent 74effa74c7
commit efbe7b56e3
No known key found for this signature in database
GPG Key ID: B89F1626A58E1429

View File

@ -14,12 +14,20 @@ install:
before_script: before_script:
- env | sort - env | sort
- cd "$VERSION"
- image="nextcloud:${VERSION}${VARIANT:+-$VARIANT}" - image="nextcloud:${VERSION}${VARIANT:+-$VARIANT}"
- hash_before=$(git write-tree)
script: script:
- travis_retry docker build -t "$image" "${VARIANT}" # Test Image
- travis_retry docker build -t "$image" "${VERSION}/${VARIANT}"
- ~/official-images/test/run.sh "$image" - ~/official-images/test/run.sh "$image"
# Test generate-stackbrew-library.sh
- ./generate-stackbrew-library.sh
# Test update.sh
- ./update.sh
- bash -c "[[ $hash_before = $(git add -A && git write-tree) ]]"
after_script: after_script:
- docker images - docker images