mirror of
https://github.com/nextcloud/docker.git
synced 2024-11-05 22:04:58 +01:00
Merge pull request #61 from tilosp-docker/test-sh
Added Tests for shell scripts
This commit is contained in:
commit
db148abc5a
1 changed files with 10 additions and 2 deletions
12
.travis.yml
12
.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
|
||||
|
|
Loading…
Reference in a new issue