Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
ML_Security_ORAM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mahyar Vahabi
ML_Security_ORAM
Commits
3a4f3a8d
Commit
3a4f3a8d
authored
1 month ago
by
Mahyar Vahabi
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml file
parent
3fe093f0
No related branches found
Branches containing commit
No related tags found
Loading
Pipeline
#617384
failed
1 month ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+13
-26
13 additions, 26 deletions
.gitlab-ci.yml
with
13 additions
and
26 deletions
.gitlab-ci.yml
+
13
−
26
View file @
3a4f3a8d
...
...
@@ -21,45 +21,32 @@ stages:
-
performance
-
cleanup
#
Service
s
#
Use Docker-in-Docker (DinD) for the CI job
s
services
:
-
docker:dind
# Docker-in-Docker service for the CI jobs
-
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"
before_script
:
-
docker info
# Confirm Docker is working
-
docker info
# Confirm Docker is working
inside the job
#
T
est
S
tage
(replace Herokuish with pytest)
#
Define the t
est
s
tage
where Docker is used
test
:
stage
:
test
image
:
python:3.8
# Python image
image
:
python:3.8
#
Use the
Python image
or another image as needed
before_script
:
-
pip install -r requirements.txt
# Install dependencies
script
:
-
pytest
# Run tests with pytest
-
docker info
# Check if Docker is available
-
pytest
# Run your tests here
artifacts
:
paths
:
-
gl-code-quality-report.json
# Ensure this
path matches your
generated
file
-
gl-code-quality-report.json
# Ensure this
is
generated
if needed
# Code Quality Job (Ensure Docker can pull image)
code_quality
:
stage
:
test
script
:
-
if [ -n "$CODECLIMATE_REGISTRY_USERNAME" ] && [ -n "$CODECLIMATE_REGISTRY_PASSWORD" ] && [ -n "$CODECLIMATE_PREFIX" ]; then
docker login -u "$CODECLIMATE_REGISTRY_USERNAME" -p "$CODECLIMATE_REGISTRY_PASSWORD" "$CODECLIMATE_PREFIX";
docker pull --quiet "$CODE_QUALITY_IMAGE";
fi
artifacts
:
paths
:
-
gl-code-quality-report.json
# Build Stage
build
:
stage
:
build
script
:
-
/build/build.sh
# Modify to match your actual build script
# Other stages...
# Define other stages as needed...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment