2019-06-03 17:56:42 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: python-latest
|
|
|
|
|
2018-04-11 16:04:14 +00:00
|
|
|
workspace:
|
|
|
|
base: /app
|
|
|
|
path: .
|
|
|
|
|
2019-06-03 17:56:42 +00:00
|
|
|
steps:
|
|
|
|
- name: test
|
2018-04-11 16:04:14 +00:00
|
|
|
image: python:3
|
|
|
|
commands:
|
2018-04-14 04:25:26 +00:00
|
|
|
- make test-env test
|
2019-06-03 22:26:40 +00:00
|
|
|
|
|
|
|
- name: notify
|
|
|
|
image: drillster/drone-email
|
|
|
|
settings:
|
|
|
|
host:
|
|
|
|
from_secret: SMTP_HOST
|
|
|
|
username:
|
|
|
|
from_secret: SMTP_USER
|
|
|
|
password:
|
|
|
|
from_secret: SMTP_PASS
|
|
|
|
from: drone@iamthefij.com
|
2018-04-12 01:16:26 +00:00
|
|
|
when:
|
2019-06-03 22:26:40 +00:00
|
|
|
status: [ changed, failure ]
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: python-3.4
|
|
|
|
|
|
|
|
workspace:
|
|
|
|
base: /app
|
|
|
|
path: .
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
|
|
|
image: python:3.4
|
|
|
|
commands:
|
|
|
|
- make test-env test
|
|
|
|
|
2019-06-03 17:56:42 +00:00
|
|
|
- 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 ]
|
2019-06-03 17:56:42 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: python-3.6
|
|
|
|
|
|
|
|
workspace:
|
|
|
|
base: /app
|
|
|
|
path: .
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
|
|
|
image: python:3.6
|
|
|
|
commands:
|
|
|
|
- make test-env test
|
|
|
|
|
2019-06-03 22:26:40 +00:00
|
|
|
- name: notify
|
|
|
|
image: drillster/drone-email
|
|
|
|
settings:
|
|
|
|
host:
|
|
|
|
from_secret: SMTP_HOST
|
|
|
|
username:
|
|
|
|
from_secret: SMTP_USER
|
|
|
|
password:
|
|
|
|
from_secret: SMTP_PASS
|
|
|
|
from: drone@iamthefij.com
|
|
|
|
when:
|
|
|
|
status: [ changed, failure ]
|
|
|
|
|
2019-06-03 17:56:42 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: python-3.7
|
|
|
|
|
|
|
|
workspace:
|
|
|
|
base: /app
|
|
|
|
path: .
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
|
|
|
image: python:3.7
|
|
|
|
commands:
|
|
|
|
- make test-env test
|
2019-06-03 22:26:40 +00:00
|
|
|
|
|
|
|
- name: notify
|
|
|
|
image: drillster/drone-email
|
|
|
|
settings:
|
|
|
|
host:
|
|
|
|
from_secret: SMTP_HOST
|
|
|
|
username:
|
|
|
|
from_secret: SMTP_USER
|
|
|
|
password:
|
|
|
|
from_secret: SMTP_PASS
|
|
|
|
from: drone@iamthefij.com
|
|
|
|
when:
|
|
|
|
status: [ changed, failure ]
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: deploy
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- python-latest
|
|
|
|
- python-3.6
|
|
|
|
- python-3.7
|
|
|
|
|
|
|
|
workspace:
|
|
|
|
base: /app
|
|
|
|
path: .
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: push to docker hub
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
repo: iamthefij/minitor
|
|
|
|
auto_tag: true
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
|
|
|
- name: push to pypi
|
|
|
|
image: python:3
|
|
|
|
commands:
|
|
|
|
- make build-env upload
|
|
|
|
environment:
|
|
|
|
TWINE_USERNAME:
|
|
|
|
from_secret: PYPI_USERNAME
|
|
|
|
TWINE_PASSWORD:
|
|
|
|
from_secret: PYPI_PASSWORD
|
|
|
|
when:
|
|
|
|
event: [ tag ]
|
|
|
|
|
|
|
|
- name: notify
|
|
|
|
image: drillster/drone-email
|
|
|
|
settings:
|
|
|
|
host:
|
|
|
|
from_secret: SMTP_HOST
|
|
|
|
username:
|
|
|
|
from_secret: SMTP_USER
|
|
|
|
password:
|
|
|
|
from_secret: SMTP_PASS
|
|
|
|
from: drone@iamthefij.com
|