Skip to content
Snippets Groups Projects
.gitlab-ci.yml 713 B
Newer Older
Leszek Szymczak's avatar
Leszek Szymczak committed
image: clarinpl/python:3.6

before_script:
  - pip install tox==2.9.1

cache:
  paths:
  - .tox

stages:
 - check_style
Leszek Szymczak's avatar
Leszek Szymczak committed
 - tests
Leszek Szymczak's avatar
Leszek Szymczak committed
 - push_wheel

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

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

Leszek Szymczak's avatar
Leszek Szymczak committed
test:
  stage: tests
  before_script:
    - apt-get install -y language-pack-pl-base
    - dpkg-reconfigure locales
  script:
    - python setup.py test

Leszek Szymczak's avatar
Leszek Szymczak committed
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/plwn_api*.whl