From d55e9c094422dfe4542e5a875de1f3b181a28f02 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Thu, 21 Mar 2019 19:37:08 -0400 Subject: [PATCH] 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 --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6735854b4e..7541282865 100644 --- a/Makefile +++ b/Makefile @@ -62,15 +62,16 @@ clean-pyc: find . -name '*.pyc' -exec rm -f {} + find . -name '*.pyo' -exec rm -f {} + find . -name '*~' -exec rm -f {} + + find . -name '__pycache__' -exec rm -R -f {} + # Testing test: - ./manage.py test $(MODULE) --settings=mayan.settings.testing.development --nomigrations + ./manage.py test $(MODULE) --settings=mayan.settings.testing.development --nomigrations $(ARGUMENTS) 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: @docker rm -f test-postgres || true