1
0
mirror of https://github.com/zokradonh/kopano-docker.git synced 2026-08-22 13:52:56 +00:00

Fix version detection in version.sh and add testing for it (#225)

* fix version syntax
* commander: verify output of version.sh
* commander: exit setup.sh with code 1 when .env exists
* add commander to travis
* minimal test for commander in core container
This commit is contained in:
Felix Bartels
2019-08-30 18:22:36 +02:00
committed by GitHub
parent 237b09b449
commit de66536525
6 changed files with 46 additions and 1 deletions
+33
View File
@@ -0,0 +1,33 @@
tests:
setup with existing .env:
command: ./setup.sh
exit-code: 1
stdout: |-
Creating individual env files for containers (if they do not exist already)
.env already exists with initial configuration
If you want to change the configuration, please edit .env directly
./version.sh:
exit-code: 0
./version.sh core:
exit-code: 0
stdout:
not-contains:
- core-
- Debian
- amd64
- tar.gz
./version.sh webapp:
exit-code: 0
stdout:
not-contains:
- webapp-
- Debian
- amd64
- tar.gz
./version.sh zpush:
exit-code: 0
stdout:
not-contains:
- Debian
- amd64
- tar.gz