From efbe7b56e38c7c301733f4fd6cb9b5302f489f1c Mon Sep 17 00:00:00 2001 From: Tilo Spannagel Date: Sat, 1 Apr 2017 16:39:41 +0200 Subject: [PATCH] Added Tests for shell scripts --- .travis.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index e8e5b113..fe98ad0d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,12 +14,20 @@ install: before_script: - env | sort - - cd "$VERSION" - image="nextcloud:${VERSION}${VARIANT:+-$VARIANT}" + - hash_before=$(git write-tree) script: - - travis_retry docker build -t "$image" "${VARIANT}" + # Test Image + - travis_retry docker build -t "$image" "${VERSION}/${VARIANT}" - ~/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: - docker images