py36_with_docker.yml 623 B

1234567891011121314151617181920212223
  1. # Pour une utilisation avec Docker
  2. # on importe l'image Docker
  3. image: python:3.6
  4. #image: python
  5. #image: python:latest
  6. # Commande d'avant exécution des jobs
  7. before_script:
  8. - python -V # affiche la version de python (pour info)
  9. - pip install cov-core # librairie python, nécessaire à nose2
  10. - pip install nose2 # librairie python d'exécution de tests unitaires
  11. - pip install coveralls # librairie python pour la couverture des tests
  12. # Utiliser le cache pour pip (installation de librairies)
  13. cache:
  14. paths:
  15. - ~/.cache/pip/
  16. # lancement d'un job
  17. test:
  18. script:
  19. - nose2