.gitlab-ci.yml 713 Bytes
Newer Older
Leszek Szymczak's avatar
Leszek Szymczak committed
1 2 3 4 5 6 7 8 9 10 11
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
12
 - tests
Leszek Szymczak's avatar
Leszek Szymczak committed
13 14 15 16 17 18 19 20 21 22 23 24
 - 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
25 26 27 28 29 30 31 32
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
33 34 35 36 37 38 39 40 41 42 43 44 45
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