mirror of
https://gitlab.rlp.net/proj-wise2526-video2document/video2document.git
synced 2026-06-15 18:01:52 +02:00
Update .gitlab-ci.yml file
This commit is contained in:
parent
bd7942f9ce
commit
5e5be60982
+21
-4
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user