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
- test
# -------- SETUP STAGE --------
setup_environment:
stage: setup
script:
- echo "🔧 Setting up environment..."
- pip install --upgrade pip
- pip install -r requirements.txt
- echo "Dependencies installed successfully."
- echo "Dependencies installed successfully."
only:
- 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:
stage: test
script:
- echo "Running V2D Framework basic test..."
- python -m unittest discover
- echo "🧪 Running tests in app folder..."
- python -m unittest discover app || echo "⚠️ No tests found in app folder."
- echo "✅ App folder test completed successfully."
only:
- main
- 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