diff --git a/Makefile b/Makefile --- a/Makefile +++ b/Makefile @@ -10,12 +10,20 @@ clean: .PHONY: test -## Run tests +## run test-clean and tests test: make test-clean make test-only +.PHONY:test-clean +## run test-clean and tests +test-clean: + rm -rf coverage.xml htmlcov junit.xml pylint.log result + find . -type d -name "__pycache__" -prune -exec rm -rf '{}' ';' + find . -type f \( -iname '.coverage.*' \) -exec rm '{}' ';' + + .PHONY: test-only ## Run tests only without cleanup test-only: @@ -24,13 +32,6 @@ test-only: --cov-report=term-missing --cov-report=html --cov=vcsserver vcsserver -.PHONY: test-clean -## Cleanup test run artifacts -test-clean: - rm -rf coverage.xml htmlcov junit.xml pylint.log result - find . -type d -name "__pycache__" -prune -exec rm -rf '{}' ';' - find . -type d -name ".pytest_cache" -prune -exec rm -rf '{}' ';' - find . -type f \( -iname '.coverage.*' \) -exec rm '{}' ';' .PHONY: pip-packages ## Show outdated packages @@ -43,6 +44,11 @@ pip-packages: sdist: python setup.py sdist +.PHONY: dev-env +## Build sdist +dev-env: + pip install -r requirements.txt -r requirements_pinned.txt -r requirements_debug.txt -r requirements_test.txt + pip install -e . # Default command on calling make .DEFAULT_GOAL := show-help @@ -84,5 +90,4 @@ show-help: printf "%s ", words[i]; \ } \ printf "\n"; \ - }' \ - | more $(shell test $(shell uname) == Darwin && echo '--no-init --raw-control-chars') + }'