2019-06-03 17:56:42 +00:00
|
|
|
kind: pipeline
|
2019-06-20 19:58:51 +00:00
|
|
|
name: test-python-latest
|
2019-06-03 17:56:42 +00:00
|
|
|
|
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:
|
2019-06-20 19:58:51 +00:00
|
|
|
- python -V
|
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
|
2019-06-20 19:58:51 +00:00
|
|
|
name: test-python3.4
|
2019-06-03 22:26:40 +00:00
|
|
|
|
|
|
|
workspace:
|
|
|
|
base: /app
|
|
|
|
path: .
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
|
|
|
image: python:3.4
|
|
|
|
commands:
|
2019-06-20 19:58:51 +00:00
|
|
|
- python -V
|
2019-06-03 22:26:40 +00:00
|
|
|
- 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
|
|
|
|
2019-07-31 04:17:00 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: test-python3.5
|
|
|
|
|
|
|
|
workspace:
|
|
|
|
base: /app
|
|
|
|
path: .
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
|
|
|
image: python:3.5
|
|
|
|
commands:
|
|
|
|
- python -V
|
|
|
|
- make test-env test
|
|
|
|
|
|
|
|
- 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
|
2019-06-20 19:58:51 +00:00
|
|
|
name: test-python3.6
|
2019-06-03 17:56:42 +00:00
|
|
|
|
|
|
|
workspace:
|
|
|
|
base: /app
|
|
|
|
path: .
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
|
|
|
image: python:3.6
|
|
|
|
commands:
|
2019-06-20 19:58:51 +00:00
|
|
|
- python -V
|
2019-06-03 17:56:42 +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
|
|
|
|
when:
|
|
|
|
status: [ changed, failure ]
|
|
|
|
|
2019-06-03 17:56:42 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2019-06-20 19:58:51 +00:00
|
|
|
name: test-python3.7
|
2019-06-03 17:56:42 +00:00
|
|
|
|
|
|
|
workspace:
|
|
|
|
base: /app
|
|
|
|
path: .
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
|
|
|
image: python:3.7
|
|
|
|
commands:
|
2019-06-20 19:58:51 +00:00
|
|
|
- python -V
|
2019-06-03 17:56:42 +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
|
|
|
|
when:
|
|
|
|
status: [ changed, failure ]
|
|
|
|
|
2019-06-20 19:58:51 +00:00
|
|
|
# ---
|
|
|
|
# kind: pipeline
|
|
|
|
# name: test-pypy3.6
|
|
|
|
#
|
|
|
|
# workspace:
|
|
|
|
# base: /app
|
|
|
|
# path: .
|
|
|
|
#
|
|
|
|
# steps:
|
|
|
|
# - name: test
|
|
|
|
# image: pypy:3.6
|
|
|
|
# commands:
|
|
|
|
# - python -V
|
|
|
|
# # python -m env doesn't exist for pypy
|
|
|
|
# - pip install virtualenv
|
|
|
|
# - virtualenv env
|
|
|
|
# - ./env/bin/pip install tox
|
|
|
|
# - make test
|
|
|
|
#
|
|
|
|
# - 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: tests
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- test-python-latest
|
|
|
|
- test-python3.4
|
2019-07-31 04:17:00 +00:00
|
|
|
- test-python3.5
|
2019-06-20 19:58:51 +00:00
|
|
|
- test-python3.6
|
|
|
|
- test-python3.7
|
|
|
|
# - test-pypy3.6
|
|
|
|
|
|
|
|
steps: []
|
|
|
|
|
2019-06-03 22:26:40 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2019-06-20 19:58:51 +00:00
|
|
|
name: deploy-pypi
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- tag
|
|
|
|
ref:
|
|
|
|
- refs/heads/master
|
|
|
|
- refs/tags/v*
|
2019-06-03 22:26:40 +00:00
|
|
|
|
|
|
|
depends_on:
|
2019-06-20 19:58:51 +00:00
|
|
|
- tests
|
2019-06-03 22:26:40 +00:00
|
|
|
|
|
|
|
workspace:
|
|
|
|
base: /app
|
|
|
|
path: .
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
2019-06-20 19:58:51 +00:00
|
|
|
- name: push to test pypi
|
|
|
|
image: python:3
|
|
|
|
commands:
|
|
|
|
- make build-env upload-test
|
|
|
|
environment:
|
|
|
|
TWINE_USERNAME:
|
|
|
|
from_secret: PYPI_USERNAME
|
|
|
|
TWINE_PASSWORD:
|
|
|
|
from_secret: TEST_PYPI_PASSWORD
|
2019-06-03 22:26:40 +00:00
|
|
|
|
|
|
|
- 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
|
2019-06-20 19:58:51 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: deploy-docker-amd64
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- tests
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
ref:
|
|
|
|
- refs/heads/master
|
|
|
|
- refs/tags/v*
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: get qemu
|
|
|
|
image: busybox
|
|
|
|
commands:
|
|
|
|
- sh ./get_qemu.sh x86_64
|
|
|
|
|
|
|
|
- name: build
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
repo: iamthefij/minitor
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: linux-amd64
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: deploy-docker-arm
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- tests
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
ref:
|
|
|
|
- refs/heads/master
|
|
|
|
- refs/tags/v*
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: get qemu
|
|
|
|
image: busybox
|
|
|
|
commands:
|
|
|
|
- sh ./get_qemu.sh arm
|
|
|
|
|
|
|
|
- name: build
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
repo: iamthefij/minitor
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: linux-arm
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
build_args:
|
|
|
|
- ARCH=arm
|
|
|
|
- REPO=arm32v6
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: deploy-docker-arm64
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- tests
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
ref:
|
|
|
|
- refs/heads/master
|
|
|
|
- refs/tags/v*
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: get qemu
|
|
|
|
image: busybox
|
|
|
|
commands:
|
|
|
|
- sh ./get_qemu.sh aarch64
|
|
|
|
|
|
|
|
- name: build
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
repo: iamthefij/minitor
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: linux-arm64
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
build_args:
|
|
|
|
- ARCH=aarch64
|
|
|
|
- REPO=arm64v8
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: deploy-docker-manifest
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- deploy-docker-amd64
|
|
|
|
- deploy-docker-arm
|
|
|
|
- deploy-docker-arm64
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
ref:
|
|
|
|
- refs/heads/master
|
|
|
|
- refs/tags/v*
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: publish manifest
|
|
|
|
image: plugins/manifest
|
|
|
|
settings:
|
|
|
|
spec: manifest.tmpl
|
|
|
|
auto_tag: true
|
|
|
|
ignore_missing: true
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|