From 65195e702ee27daaada41c4e078ffbb4b749ebc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torsten=20L=C3=BCcke?= Date: Fri, 16 Apr 2021 21:58:54 +0200 Subject: [PATCH] =?UTF-8?q?F=C3=BCr=20den=20Anfang=20wird=20eine=20einfach?= =?UTF-8?q?e=20Bash-Datei=20zum=20Deployment=20benutzt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 deploy.sh diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..3840ccd --- /dev/null +++ b/deploy.sh @@ -0,0 +1,26 @@ +#!/usr/bin/env bash + +build_ui() { + cd ui/ || exit 2 + npm run build + cd .. +} + +test_unit() { + pwd + cd api/ || exit 2 + ./vendor/bin/codecept run unit + cd .. +} + +test_api() { + cd api/ || exit 2 + ./vendor/bin/codecept run api + cd .. +} + +composer_run() { + docker-compose up -d +} + +build_ui && test_unit && composer_run && test_api \ No newline at end of file