L'idéal pour l'intégration continue avec Gitlab serait d'utiliser Docker pour importer une image Docker. Le fichier .gitlab-ci.yml ressemblerait alors à:
# Official framework image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/python
image: python:3.6
#image: python:latest
before_script:
- python -V # Affiche la version de python
- pip install cov-core # Installe les librairies nécessaires
- pip install nose2
- pip install coveralls
# This folder is cached between builds
cache:
paths:
- ~/.cache/pip/
test:
script:
- nose2