From 507ce93718d393bedb9fdab7acc1cd447722fdc7 Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Tue, 27 Dec 2022 12:32:40 +0100 Subject: [PATCH] .gitlab-ci.yml - test starting service --- .gitlab-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 29435c4..f74c967 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -69,6 +69,14 @@ test:debian: script: # test installation - apt-get install -q -y ./build/build.deb --fix-missing + - uvicorn --host 127.0.0.1 --port 443 \ + --app-dir /usr/share/fastapi-dls/app \ + --ssl-keyfile /etc/fastapi-dls/webserver.key \ + --ssl-certfile /opt/fastapi-dls/webserver.crt \ + --proxy-headers & + - FASTAPI_DLS_PID=$! + - echo "> Started service with pid: $FASTAPI_DLS_PID" + - kill $FASTAPI_DLS_PID # copy example config from GitLab-CI-Variables #- cat ${EXAMPLE_CONFIG} > /etc/fastapi-dls/env #- systemctl daemon-reload