bytetrie/.drone.yml
Armin Friedl 5ff7ff6b2d
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
continuous-integration/drone Build is passing
Version 0.0.5
2020-10-11 21:57:39 +02:00

41 lines
820 B
YAML

kind: pipeline
type: docker
name: default
steps:
- name: validate
image: python:3
commands:
- pip install mypy pytest
- mypy bytetrie/*.py
- python -m pytest
- name: publish
image: python:3
environment:
TWINE_USERNAME: __token__
TWINE_PASSWORD:
from_secret: pypi_test_token
commands:
- pip install twine setuptools wheel
- python setup.py sdist bdist_wheel
- twine check dist/*
- twine upload --repository testpypi dist/*
when:
event:
- tag
- name: promote
image: python:3
environment:
TWINE_USERNAME: __token__
TWINE_PASSWORD:
from_secret: pypi_token
commands:
- pip install twine setuptools wheel
- python setup.py sdist bdist_wheel
- twine check dist/*
- twine upload dist/*
when:
target:
- production