Commit fac69f23 authored by Vasilis Tsiligiannis's avatar Vasilis Tsiligiannis

gitlab-ci: Add 'deploy' stage to upload to PyPI

Signed-off-by: Vasilis Tsiligiannis's avatarVasilis Tsiligiannis <acinonyx@openwrt.gr>
parent b902076d
stages:
- test
- deploy
Python 2.7:
stage: test
image: python:2.7
script:
- pip install tox
- tox -e flake8,yapf,pylint,robot_lint,py27
Python 3.6:
stage: test
image: python:3.6
script:
- pip install tox
- tox -e py36
deploy:
stage: deploy
image: python:2.7
before_script:
- pip install twine
script:
- rm -rf dist
- python setup.py sdist bdist_wheel
- twine upload -u "$PYPI_USERNAME" -p "$PYPI_PASSWORD" dist/*
only:
refs:
- tags
variables:
- $PYPI_USERNAME
- $PYPI_PASSWORD
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment