From eac19e7511d14f191fd1c2688f4f2000c2b3e8ea Mon Sep 17 00:00:00 2001
From: Krisjanis Rijnieks <krisjanis.rijnieks@gmail.com>
Date: Mon, 24 Feb 2025 19:56:20 +0200
Subject: [PATCH] Try custom badge approach

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 67ade09..462b450 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -12,23 +12,29 @@ stages:
 test_inventory:
   stage: stage_test_inventory
   needs: []
-  script:
-    - echo "Do we have all parts in inventory covered?"
-    - ./tests/inventory.sh ./fab.kicad_sym ./tests/whitelist.txt
-    - ./tests/symbols.sh
+  script: |
+    echo "Do we have all parts in inventory covered?"
+    ./tests/inventory.sh ./fab.kicad_sym ./tests/whitelist.txt && echo '{"status": "passed"}' > test_inventory_status.json || echo '{"status": "failed"}' > test_inventory_status.json
+  artifacts:
+    paths:
+      - test_inventory_status.json
 
 test_footprints:
   stage: stage_test_footprints
   needs: []
-  allow_failure: true
-  script:
-    - echo "Do we have footprints for all symbols?"
-    - exit 1
+  script: |
+    echo "Do we have footprints for all symbols?"
+    echo '{"status": "failed"}' > test_footprints_status.json && exit 1
+  artifacts:
+    paths:
+      - test_footprints_status.json
 
 test_3dmodels:
   stage: stage_test_3dmodels
   needs: []
-  allow_failure: true
-  script:
-    - echo "Do we have 3D models for all footprints?"
-    - exit 1
+  script: |
+    echo "Do we have 3D models for all footprints?"
+    echo '{"status": "failed"}' > test_3dmodels_status.json && exit 1
+  artifacts:
+    paths:
+      - test_3dmodels_status.json
-- 
GitLab