icm/Makefile

41 lines
680 B
Makefile

clean:
pipenv --rm
install:
pipenv install
install_dev:
pipenv install --dev
make requirements
run_dev:
git ls-files | entr -r pipenv run python dev.py
tdd:
git ls-files | entr pipenv run pytest --lf --nf
git ls-files | entr make functionnal_tests
test:
pipenv run pytest $(opt)
functionnal_tests:
pipenv run python -m pytest functionnal_test.py
requirements:
pipenv requirements > requirements.txt
pipenv requirements --dev-only > requirements_dev.txt
docs:
cd docs/ && make html
cd docs && firefox ./_build/html/README.html ./_build/html/index.html &
.PHONY: docs
venv_install:
make -f MakefileVenv install_dev
venv_test:
make -f MakefileVenv test