aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-10-16 10:01:48 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-10-16 10:24:53 +0300
commit8e8a7f5d6052b84af0af501571a1fb9c5d4117d2 (patch)
tree6fa121d467c979e0aa41d4589b3fb48d93cbf9e7
parentv2.1.2 (diff)
downloadcgitize-8e8a7f5d6052b84af0af501571a1fb9c5d4117d2.tar.gz
cgitize-8e8a7f5d6052b84af0af501571a1fb9c5d4117d2.zip
Makefile: add more convenient aliases
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 703f44b..eee3e82 100644
--- a/Makefile
+++ b/Makefile
@@ -121,3 +121,16 @@ buildx/build:
.PHONY: buildx/push
buildx/push:
docker buildx build -t '$(call escape,$(DOCKER_USERNAME))/$(call escape,$(PROJECT))' --platform '$(call escape,$(PLATFORMS))' --progress plain --push .
+
+venv_dir := .venv
+
+.PHONY: venv
+venv:
+ rm -rf -- '$(call escape,$(venv_dir))'
+ mkdir -p -- '$(call escape,$(venv_dir))'
+ python -m venv -- '$(call escape,$(venv_dir))'
+ . '$(call escape,$(venv_dir))/bin/activate' && pip install -r requirements.txt
+
+.PHONY: test
+test:
+ . '$(call escape,$(venv_dir))/bin/activate' && python -m unittest --verbose --buffer