Added Makefile for CI/CD

This commit is contained in:
2023-02-16 15:44:47 +01:00
parent ef98d51e8c
commit 2ca2cee9a4
2 changed files with 15 additions and 7 deletions

10
Makefile Normal file
View File

@@ -0,0 +1,10 @@
.PHONY: default help test
default: help
help:
@echo "The make stuff is used by our CI/CD environment."
test:
tox

12
tox.ini
View File

@@ -1,16 +1,14 @@
[tox]
#envlist = py3-django3,py3-django2
envlist = py3-django3
envlist = django,django3
[testenv]
deps = coverage
py3-django2: django<3
py3-django2: pylint-django
py3-django3: django
py3-django3: pylint-django
django: django
django3: django<4
pylint-django
pytest
mock
commands = coverage run -m pytest
coverage report --skip-covered --fail-under=98
pylint django_deploy
pylint --fail-under=9 django_deploy