From 9aa315e2c21b76f4408cad40ecdaf118293bd15a Mon Sep 17 00:00:00 2001 From: Iurii Tatishchev Date: Sun, 10 Oct 2021 14:12:10 -0700 Subject: [PATCH] Experiment with Drone CI --- .drone.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..9befa77 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,30 @@ +kind: pipeline +type: kubernetes +name: test + +steps: + - name: django_test + image: python:3.9-alpine + commands: + - pip install -r requirements/dev.txt + - python manage.py test + - name: coverage + image: python:3.9-alpine + commands: + - pip install -r requirements/dev.txt + - coverage run + - coverage report -m + - coverage html -d public/coverage + - name: upload_artifacts + image: plugins/s3 + settings: + source: public/**/* + path_style: true + enpoint: + from_secret: S3_ENDPOINT + bucket: drone + target: /target/location/${DRONE_BUILD_NUMBER} + access_key: + from_secret: S3_ACCESS_KEY + secret_key: + from_secret: S3_SECRET_KEY