From bb691231dc59a6c2dcd125aadcc6ba35cddd92de Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Wed, 3 Aug 2022 22:05:50 -0400 Subject: [PATCH] Add drone pipeline to mimic Gitlab --- .drone.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..e2564e0 --- /dev/null +++ b/.drone.yml @@ -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 \ No newline at end of file