-
Notifications
You must be signed in to change notification settings - Fork 17
/
.drone.yml
77 lines (65 loc) · 1.19 KB
/
.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
kind: pipeline
name: lint
steps:
- name: lint
image: miki725/pre-commit
trigger:
ref:
- refs/heads/master
- refs/pull/*/head
---
kind: pipeline
name: tests
steps:
- name: python3.8
image: python:3.8
commands:
- pip install tox
- tox -e $(tox -l | grep py38 | paste -sd ",")
- name: python3.7
image: python:3.7
commands:
- pip install tox
- tox -e $(tox -l | grep py37 | paste -sd ",")
- name: python3.6
image: python:3.6
commands:
- pip install tox
- tox -e $(tox -l | grep py36 | paste -sd ",")
- name: pypy3
image: pypy:3
commands:
- pip install tox
- tox -e $(tox -l | grep pypy3 | paste -sd ",")
- name: coverage
image: plugins/codecov
settings:
token:
from_secret: codecov_token
files:
- '*.xml'
required: true
depends_on:
- python3.8
trigger:
ref:
- refs/heads/master
- refs/pull/*/head
---
kind: pipeline
name: release
steps:
- name: release
image: python:3.8
environment:
TWINE_USERNAME:
from_secret: pypi_username
TWINE_PASSWORD:
from_secret: pypi_token
commands:
- make install INSTALL_FILE=requirements-release.txt
- make release
trigger:
event:
- tag