minitor/.drone.yml

63 lines
921 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
2018-04-12 01:16:26 +00:00
secrets:
- source: PYPI_USERNAME
target: TWINE_USERNAME
- source: PYPI_PASSWORD
target: TWINE_PASSWORD
when:
event: tag
- name: notify
2018-04-18 17:14:29 +00:00
image: drillster/drone-email
host: $SMTP_HOST
username: $SMTP_USER
password: $SMTP_PASS
from: drone@iamthefij.com
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