.gitlab-ci.yml 978 Bytes
Newer Older
SIMONIN Matthieu's avatar
SIMONIN Matthieu 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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
# This file is a template, and might need editing before it works on your project.
# Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/python/tags/
image: python:3.6

python3.5:
    image: python:3.5
    stage: test
    tags: [qlf-ci.inria.fr]
    script:
    - pip install tox
    - tox -e py35 pep8

python3.6:
    image: python:3.6
    stage: test
    tags: [qlf-ci.inria.fr]
    script:
    - pip install tox
    - tox -e py36 pep8

#### Entering th release zone
pages:
    stage: deploy
    tags: [qlf-ci.inria.fr]
    only:
    - tags
    script:
    - pip install tox
    - tox -e docs
    - mkdir -p public/
    - cp -r docs/_build/html/* public/
    artifacts:
      paths:
      - public

pypi:
    stage: deploy
    tags: [qlf-ci.inria.fr]
    only:
    - tags
    script:
    - python setup.py bdist_wheel
    - pip install twine
    # credentials are set in the env by gitlab
    - twine upload dist/* --verbose