-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
41 lines (38 loc) · 816 Bytes
/
.drone.yml
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
38
39
40
41
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:
event:
- promote