1
0
mirror of https://github.com/zokradonh/kopano-docker.git synced 2026-08-23 06:12:52 +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
+3
View File
@@ -379,6 +379,9 @@ test-goss: ## Test configuration of containers with goss
GOSS_FILES_PATH=core/goss/spooler dcgoss run kopano_spooler
GOSS_FILES_PATH=webapp dcgoss run kopano_webapp
test-commander: ## Test scripts with commander
COMMANDER_FILES_PATH=core/commander/server dccommander run kopano_server
test-security: ## Scan containers with Trivy for known security risks (not part of CI workflow for now).
cat $(TAG_FILE) | xargs -I % sh -c 'trivy --exit-code 0 --severity HIGH --quiet --auto-refresh %'
cat $(TAG_FILE) | xargs -I % sh -c 'trivy --exit-code 1 --severity CRITICAL --quiet --auto-refresh %'