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:
Executable
+33
@@ -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
|
||||
Reference in New Issue
Block a user