git:gitlab

GitLab

Il suffit de placer un fichier .gitlab-ci.yml à la racine du projet correctement configuré.

Exemple de fichier pour les tests d'une application Django:

.gitlab-ci.yml
image: python:latest

cache:
  paths:
  - ~/.cache/pip/

before_script:
  - python -V # Print out python version for debugging
  - pip install -r requirements.txt -r requirements-dev.txt

test:
  script:
  - make flake
  - make coverage

Désactiver la CI pour un push

git push -o ci.skip
  • git/gitlab.txt
  • Dernière modification : 2025/10/27 17:58
  • de phsw