Skip to content
Snippets Groups Projects
Commit f65b00ac authored by Mahyar Vahabi's avatar Mahyar Vahabi
Browse files

Update .gitlab-ci.yml file

parent f54b2f22
No related branches found
No related tags found
No related merge requests found
Pipeline #617386 canceled
......@@ -21,32 +21,28 @@ stages:
- performance
- cleanup
# Use Docker-in-Docker (DinD) for the CI jobs
# Add Docker-in-Docker (DinD) service and ensure privileged mode
services:
- name: docker:dind
command: ["--host=tcp://0.0.0.0:2375", "--add-host=host.docker.internal:host-gateway"]
variables:
DOCKER_DRIVER: overlay2
DOCKER_HOST: tcp://docker:2375 # Set the Docker host to Docker-in-Docker
# You can also configure specific Docker versions if necessary
# DOCKER_VERSION: "19.03.12"
DOCKER_HOST: tcp://docker:2375 # Configure Docker to point to the DinD service
before_script:
- docker info # Confirm Docker is working inside the job
- docker info # Confirm Docker is available and check the Docker info
# Define the test stage where Docker is used
test:
stage: test
image: python:3.8 # Use the Python image or another image as needed
image: python:3.8 # Use a Python image or adjust for your needs
before_script:
- pip install -r requirements.txt # Install dependencies
script:
- docker info # Check if Docker is available
- pytest # Run your tests here
- docker info # Verify Docker is running
- pytest # Run your tests
artifacts:
paths:
- gl-code-quality-report.json # Ensure this is generated if needed
- gl-code-quality-report.json # Ensure this path is correct if you need to upload artifacts
# Define other stages as needed...
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment