Update Makefile
Add deletion of Python3 cache files to the clean target. Allowing passing extra arguments to the test targets. Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
@@ -62,15 +62,16 @@ clean-pyc:
|
|||||||
find . -name '*.pyc' -exec rm -f {} +
|
find . -name '*.pyc' -exec rm -f {} +
|
||||||
find . -name '*.pyo' -exec rm -f {} +
|
find . -name '*.pyo' -exec rm -f {} +
|
||||||
find . -name '*~' -exec rm -f {} +
|
find . -name '*~' -exec rm -f {} +
|
||||||
|
find . -name '__pycache__' -exec rm -R -f {} +
|
||||||
|
|
||||||
|
|
||||||
# Testing
|
# Testing
|
||||||
|
|
||||||
test:
|
test:
|
||||||
./manage.py test $(MODULE) --settings=mayan.settings.testing.development --nomigrations
|
./manage.py test $(MODULE) --settings=mayan.settings.testing.development --nomigrations $(ARGUMENTS)
|
||||||
|
|
||||||
test-all:
|
test-all:
|
||||||
./manage.py test --mayan-apps --settings=mayan.settings.testing.development --nomigrations
|
./manage.py test --mayan-apps --settings=mayan.settings.testing.development --nomigrations $(ARGUMENTS)
|
||||||
|
|
||||||
test-launch-postgres:
|
test-launch-postgres:
|
||||||
@docker rm -f test-postgres || true
|
@docker rm -f test-postgres || true
|
||||||
|
|||||||
Reference in New Issue
Block a user