Merge pull request 'Added Makefile for CI/CD' (#11) from cicd into master

Reviewed-on: #11
This commit was merged in pull request #11.
This commit is contained in:
2023-02-16 15:49:05 +01:00
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] [tox]
#envlist = py3-django3,py3-django2 envlist = django,django3
envlist = py3-django3
[testenv] [testenv]
deps = coverage deps = coverage
py3-django2: django<3 django: django
py3-django2: pylint-django django3: django<4
py3-django3: django pylint-django
py3-django3: pylint-django
pytest pytest
mock mock
commands = coverage run -m pytest commands = coverage run -m pytest
coverage report --skip-covered --fail-under=98 coverage report --skip-covered --fail-under=98
pylint django_deploy pylint --fail-under=9 django_deploy