Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Automatisation_Eval
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
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
MARCHAL Lucas
Automatisation_Eval
Commits
fc99cfae
Commit
fc99cfae
authored
1 year ago
by
Jemlevo
Browse files
Options
Downloads
Patches
Plain Diff
.gitlab-ci.yml
parent
e0d4668d
No related branches found
No related tags found
No related merge requests found
Pipeline
#16794
passed
1 year ago
Stage: test
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+12
-14
12 additions, 14 deletions
.gitlab-ci.yml
test_calcSphere.py
+1
-1
1 addition, 1 deletion
test_calcSphere.py
with
13 additions
and
15 deletions
.gitlab-ci.yml
+
12
−
14
View file @
fc99cfae
stages
:
-
test
-
deploy
-
build
pytest_job
:
stage
:
test
image
:
python:latest
build
:
stage
:
build
script
:
-
pip install pytest
-
pytest
-
echo "On est dans le build"
php_deploy_job
:
stage
:
deploy
image
:
php:latest
test
:
stage
:
test
script
:
-
apt-get update && apt-get install -y git
-
git clone $CI_REPOSITORY_URL .
# Cloner le dépôt actuel
-
cp display_result.php /path/to/your/webserver/directory
# Remplacez par votre chemin vers le répertoire du serveur web
only
:
-
master
# Déclencher le déploiement uniquement depuis la branche master
-
apk update
-
apk add python3 py3-pip
-
python3 -m venv venv
-
source venv/bin/activate
-
pip install pytest
-
python3 -m pytest test_calcSphere.py
\ No newline at end of file
This diff is collapsed.
Click to expand it.
test_calcSphere.py
+
1
−
1
View file @
fc99cfae
...
...
@@ -8,4 +8,4 @@ def test_zero():
assert
calc
(
0
)
==
0
def
test_negative
():
assert
calc
(
-
3
)
==
113.1
\ No newline at end of file
assert
calc
(
-
3
)
==
113.1
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