-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.drone.yml
36 lines (33 loc) · 935 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
pipeline:
build:
image: python:3.6
commands:
- pip install -r requirements.txt
- python setup.py install
test:
image: python:3.6
commands:
- pip install -r requirements.txt pytest pytest-cov codecov
- python setup.py install
- pytest --cov=./
- codecov -t $${CODECOV_TOKEN}
secrets: [ marilyn_url_api, marilyn_login, marilyn_password, CODECOV_TOKEN]
when:
branch: [master, dev]
pypi_publish:
image: username502/drone-pypi:latest
secrets: [ PYPI_REPOSITORY, PYPI_USERNAME, PYPI_PASSWORD ]
when:
branch: master
event: tag
notify:
image: drillster/drone-email
host: smtp.mailgun.org
port: 25
username: email_username
password: email_password
from: drone@mg.guser.ru
recipients: [ skar404@gmail.com ]
secrets: [ email_username, email_password ]
when:
status: [ changed, failure ]