diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-10-16 10:01:48 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-10-16 10:24:53 +0300 |
commit | 8e8a7f5d6052b84af0af501571a1fb9c5d4117d2 (patch) | |
tree | 6fa121d467c979e0aa41d4589b3fb48d93cbf9e7 | |
parent | v2.1.2 (diff) | |
download | cgitize-8e8a7f5d6052b84af0af501571a1fb9c5d4117d2.tar.gz cgitize-8e8a7f5d6052b84af0af501571a1fb9c5d4117d2.zip |
Makefile: add more convenient aliases
-rw-r--r-- | Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 |