diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 67ade0939bda7e8c57753d6a24e3e60adc5dbd31..462b45047562de7b25dfd09e1056e6a79c12cb54 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