mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user