Added Makefile for CI/CD
This commit is contained in:
10
Makefile
Normal file
10
Makefile
Normal 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
12
tox.ini
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user