minitor/.drone.yml

66 lines
999 B
YAML
Raw Normal View History

kind: pipeline
name: python-latest
workspace:
base: /app
path: .
steps:
- name: test
image: python:3
commands:
2018-04-14 04:25:26 +00:00
- make test-env test
- name: push to pypi
2018-04-12 01:16:26 +00:00
image: python:3
commands:
2018-04-18 16:57:36 +00:00
- make build-env upload
2019-06-03 20:59:37 +00:00
environment:
TWINE_USERNAME:
from_secret: PYPI_USERNAME
2019-06-03 21:10:54 +00:00
TWINE_PASSWORD:
2019-06-03 20:59:37 +00:00
from_secret: PYPI_PASSWORD
2018-04-12 01:16:26 +00:00
when:
2019-06-03 19:34:42 +00:00
event: [ tag ]
- name: notify
2018-04-18 17:14:29 +00:00
image: drillster/drone-email
2019-06-03 20:59:37 +00:00
settings:
host:
from_secret: SMTP_HOST
username:
from_secret: SMTP_USER
password:
from_secret: SMTP_PASS
from: drone@iamthefij.com
2018-04-18 17:14:29 +00:00
when:
status: [ changed, failure ]
---
kind: pipeline
name: python-3.6
workspace:
base: /app
path: .
steps:
- name: test
image: python:3.6
commands:
- make test-env test
---
kind: pipeline
name: python-3.7
workspace:
base: /app
path: .
steps:
- name: test
image: python:3.7
commands:
- make test-env test