From 9a8053f8a08c446830380225489a028f20650cad Mon Sep 17 00:00:00 2001
From: Lucas Brandstaetter <lucas@brandstaetter.tech>
Date: Sat, 7 Dec 2024 04:11:34 +0100
Subject: [PATCH] Add verbose output to curl commands in CI

---
 .gitlab-ci.yml | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index be605d93e..3c97953a4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -348,8 +348,8 @@ build_test:
   before_script:
     - pip3 install requests
     - echo "testing on $BASE_URL"
-    - curl --max-time 8 --retry 3 --fail ${BASE_URL}/.well-known/version
-    - curl --max-time 3 --retry 3 --fail ${BASE_URL}/.well-known/health
+    - curl -v --max-time 8 --retry 3 --fail ${BASE_URL}/.well-known/version
+    - curl -v --max-time 3 --retry 3 --fail ${BASE_URL}/.well-known/health
 
 test_image_api:
   extends: .test_image
@@ -358,9 +358,9 @@ test_image_api:
     SERVE_BACKOFFICE: "yes"
   script:
     # check that the profile can be queried
-    - curl --max-time 3 --retry 3 --fail ${BASE_URL}/api/me
+    - curl -v --max-time 3 --retry 3 --fail ${BASE_URL}/api/me
     # get a list of all conferences
-    - curl --max-time 3 --retry 3 --fail ${BASE_URL}/api/info
+    - curl -v --max-time 3 --retry 3 --fail ${BASE_URL}/api/info
     # run integration tests
     - cd tests
     - python3 -m unittest -v
@@ -374,7 +374,7 @@ test_image_frontend:
     SELECTED_CONFERENCE_ID: "017c0749-a2ea-4f86-92cd-e60b4508dd98"
   script:
     # check that something is being served at all
-    - curl --max-time 3 --retry 3 --fail ${BASE_URL}/en/index
+    - curl -v --max-time 3 --retry 3 --fail ${BASE_URL}/en/index
     # run integration tests
     - cd tests
     - python3 -m unittest -v
@@ -394,7 +394,7 @@ test_nginx_static:
       alias: nginx
   script:
     # ensure the CSS got generated and is being served
-    - curl --max-time 3 --retry 3 --fail ${BASE_URL}/static/plainui/hub.css > /dev/null
+    - curl -v --max-time 3 --retry 3 --fail ${BASE_URL}/static/plainui/hub.css > /dev/null
 
 .publish-image:
   stage: publish
-- 
GitLab