Add drone pipeline to mimic Gitlab
This commit is contained in:
parent
d69001d72d
commit
bb691231dc
35
.drone.yml
Normal file
35
.drone.yml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: build
|
||||||
|
|
||||||
|
steps:
|
||||||
|
name: build
|
||||||
|
image: python:3-buster
|
||||||
|
commands:
|
||||||
|
- export PYTHONPATH=.
|
||||||
|
- export FLASK_APP=period
|
||||||
|
- apt-get update -qy
|
||||||
|
- apt-get install -y python3-dev python3-pip
|
||||||
|
- pip3 install --upgrade pip
|
||||||
|
- pip3 install --upgrade setuptools
|
||||||
|
- pip3 install Flask gunicorn pytest pytest-cov
|
||||||
|
- pip3 install pendulum
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: test
|
||||||
|
|
||||||
|
steps:
|
||||||
|
name: test
|
||||||
|
image: python:3-buster
|
||||||
|
commands:
|
||||||
|
- export PYTHONPATH=.
|
||||||
|
- export FLASK_APP=period
|
||||||
|
- apt-get update -qy
|
||||||
|
- apt-get install -y python3-dev python3-pip
|
||||||
|
- pip3 install --upgrade pip
|
||||||
|
- pip3 install --upgrade setuptools
|
||||||
|
- pip3 install Flask gunicorn pytest pytest-cov
|
||||||
|
- pip3 install pendulum
|
||||||
|
- pytest tests --cov --cov-report term --cov-report html --junitxml=report.xml
|
Loading…
Reference in New Issue
Block a user