Skip to content
Snippets Groups Projects
Commit fc99cfae authored by Jemlevo's avatar Jemlevo
Browse files

.gitlab-ci.yml

parent e0d4668d
No related branches found
No related tags found
No related merge requests found
Pipeline #16794 passed
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
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment