implemented first CI pipeline version with a test test that only checks if 1 is 1, needs implementation of actual tests

This commit is contained in:
2025-12-09 17:56:59 +01:00
parent 882b49a489
commit 8c201db539
6 changed files with 26 additions and 35 deletions
+14 -25
View File
@@ -1,33 +1,22 @@
workflow:
rules:
# Run the pipeline for merge requests or when committing to a branch
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH
image: python:3.14.0
image: node:latest
stages:
- setup
- install
- test
setup_environment:
stage: setup
job-install:
stage: install
script:
- pip install --upgrade pip
- pip install -r requirements.txt
- echo "Dependencies installed successfully."
- npm install
artifacts:
untracked: false
when: on_success
access: all
expire_in: "30 days"
paths:
- node_modules
only:
- main
- feature/ci-pipeline-s1-09a-1 # You can add more branches if needed
test_app:
job-test:
stage: test
script:
- echo "Running V2D Framework basic test..."
- python -m unittest discover || echo "No tests found."
only:
- main
- feature/ci-pipeline-s1-09a-1
- npm test