.gitlab-ci.yml 496 Bytes
Newer Older
Florent Chehab's avatar
Florent Chehab committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
image: python:3.6.5-jessie

testing:
  stage: test
  script:
    - pip install -r requirements.txt
    - ./manage.py check
    - coverage3 run manage.py test              
    - coverage3 report
    - coverage3 html
  artifacts:
    paths:
      - htmlcov/
    expire_in: 1 month
  tags:
    - docker

pages:
  stage: deploy
  dependencies:
    - testing
  script:
    - mv htmlcov/ public/
  artifacts:
    paths:
      - public
    expire_in: 1 month
  only: 
    - master
  tags:
    - docker