From 2ca2cee9a42798bcbf557ba639ee6bde5be261e8 Mon Sep 17 00:00:00 2001 From: heinzel Date: Thu, 16 Feb 2023 15:44:47 +0100 Subject: [PATCH] Added Makefile for CI/CD --- Makefile | 10 ++++++++++ tox.ini | 12 +++++------- 2 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7165465 --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +.PHONY: default help test + +default: help + +help: + @echo "The make stuff is used by our CI/CD environment." + +test: + tox + diff --git a/tox.ini b/tox.ini index 706d993..ec955e1 100644 --- a/tox.ini +++ b/tox.ini @@ -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