Makefile fixes: don't force recrating of virtualenv

Everytime that we run the tests we create a temporary virtualenv.
This is nice for idempotency, but really a killer for SSDs on developers
machines.
I would recommend also to document the ramdisks target, since running
the tests in the ramdisk should be faster.
This commit is contained in:
Oz N Tiram
2022-05-12 19:55:45 +02:00
parent 658d19ad1d
commit 0163ada401
+3 -3
View File
@@ -51,11 +51,11 @@ ramdisk-virtualenv: ramdisk
.PHONY: virtualenv
virtualenv:
[ ! -e $(venv_dir) ] && rm -rf $(venv_file) && python -m venv $(venv_dir)
[ ! -e $(venv_dir) ] && rm -rvf $(venv_file) && python -m venv $(venv_dir)
@echo $(venv_dir) >> $(venv_file)
.PHONY: test-install
test-install: virtualenv
test-install:
. $(get_venv_path)/bin/activate && \
python -m pip install --upgrade pip -e .[tests,dev] && \
pipenv install --dev
@@ -67,7 +67,7 @@ submodules:
.PHONY: tests
tests: parallel ?= -n auto
tests: virtualenv submodules test-install
tests: submodules test-install
. $(get_venv_path)/bin/activate && \
pipenv run pytest -ra $(parallel) -vvv --full-trace --tb=long