Update .gitlab-ci.yml file

This commit is contained in:
Aarthi Manivannan, Premanathan Aarthi Manivannan
2025-11-13 12:37:53 +01:00
parent bd7942f9ce
commit 5e5be60982
+21 -4
View File
@@ -10,24 +10,41 @@ stages:
- setup - setup
- test - test
# -------- SETUP STAGE --------
setup_environment: setup_environment:
stage: setup stage: setup
script: script:
- echo "🔧 Setting up environment..."
- pip install --upgrade pip - pip install --upgrade pip
- pip install -r requirements.txt - pip install -r requirements.txt
- echo "Dependencies installed successfully." - echo "Dependencies installed successfully."
only: only:
- main - main
- feature/ci-pipeline-s1-09a-1 # You can add more branches if needed - feature/ci-pipeline-s1-09a-1 # Add more branches if needed
# -------- TEST APP FOLDER --------
test_app: test_app:
stage: test stage: test
script: script:
- echo "Running V2D Framework basic test..." - echo "🧪 Running tests in app folder..."
- python -m unittest discover - python -m unittest discover app || echo "⚠️ No tests found in app folder."
- echo "✅ App folder test completed successfully."
only: only:
- main - main
- feature/ci-pipeline-s1-09a-1 - feature/ci-pipeline-s1-09a-1
# -------- TEST TEST FOLDER --------
test_test_folder:
stage: test
script:
- echo "🧪 Running tests in test folder..."
- python -m unittest discover test || echo "⚠️ No tests found in test folder."
- echo "✅ Test folder test completed successfully."
only:
- main
- feature/ci-pipeline-s1-09a-1