From b1b7f203558710d5cec951d311d8d0b54ce9f736 Mon Sep 17 00:00:00 2001 From: Wittmann Gregory <gregory.wittmann4@etu.univ-lorraine.fr> Date: Mon, 8 Jan 2024 17:32:19 +0100 Subject: [PATCH] modif pipline --- .gitlab-ci.yml | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c76f086..eb23722 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,30 +1,19 @@ stages: - lint - test - - deploy - -variables: - IMAGE_NAME: imagesphere # Remplacez par le nom réel de votre image Docker lint: stage: lint script: - - apt-get update -qy - - apt-get install -y python3-pip + - apk update + - apk add python3 py3-pip - pip3 install flake8 - flake8 sphère.py test: stage: test script: - - apt-get update -qy - - apt-get install -y python3-pip + - apk update + - apk add python3 py3-pip - pip3 install -r requirements.txt - python3 -m pytest test_sphère.py - -deploy: - stage: deploy - only: - - master - script: - - echo echo "Les étapes de déploiement seront définies ultérieurement." \ No newline at end of file -- GitLab