.gitlab-ci.yml 551 Bytes
Newer Older
Grzegorz Kostkowski's avatar
Grzegorz Kostkowski 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
image: clarinpl/python:3.6

before_script:
  - pip install tox==2.9.1

cache:
  paths:
  - .tox

stages:
 - check_style
 - push_wheel

pep8:
  stage: check_style
  script:
   - tox -v -e pep8

docstyle:
  stage: check_style
  script:
   - tox -v -e docstyle

push_wheel:
  before_script:
   - pip install twine
  only:
   - master
  stage: push_wheel
  when: on_success
  script:
   - python setup.py sdist bdist_wheel
   - python -m twine upload 
     --repository-url https://pypi.clarin-pl.eu/
     -u $PIPY_USER -p $PIPY_PASS dist/cclutils*.whl