diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c76f0864d934c3218f967d12b750230ef163c227..eb23722e19defb37eb7319d57880a54f749deb93 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