added drone.yml

This commit is contained in:
Jens Timmerman 2021-08-06 23:31:03 +02:00
parent 93426083ca
commit b32a6c4c8b
1 changed files with 23 additions and 0 deletions

23
.drone.yml Normal file
View File

@ -0,0 +1,23 @@
kind: pipeline
type: exec
name: default
platform:
os: linux
arch: amd64
steps:
- name: install deps
commands:
- dnf install -y python3 python3-pip
- pip3 install -U Django coverage flake8 pylint django-coverage-plugin pylint-django django-bootstrap4
- name: run unittests
commands:
- coverage run --source='.' manage.py test --noinput --parallel
- name: run flake8
commands:
- flake8
- name: run pylint
commands:
- pylint --rcfile=.pylintrc -- **/*.py