.gitlab-ci.yml 588 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
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

Florent Chehab's avatar
Florent Chehab committed
18 19 20
flake8:
  stage: test
  script:
Florent Chehab's avatar
clean  
Florent Chehab committed
21
    - pip install flake8
Florent Chehab's avatar
Florent Chehab committed
22 23 24 25
    - flake8
  tags:
    - docker

Florent Chehab's avatar
Florent Chehab committed
26 27 28 29 30 31 32 33 34 35 36 37 38 39
pages:
  stage: deploy
  dependencies:
    - testing
  script:
    - mv htmlcov/ public/
  artifacts:
    paths:
      - public
    expire_in: 1 month
  only: 
    - master
  tags:
    - docker