X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=Makefile;h=534bf8852d196334cc5dbb2f463863c7727f5cb9;hb=5542e9e31a0074f4ed3b91cadce643ad60083cde;hp=f811376c525dcc497702979eba34fb53e8bb8f81;hpb=17ff995eb623dcaea579e33e507091d6169c52e5;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FCryptoportfolio%2FTrader.git diff --git a/Makefile b/Makefile index f811376..534bf88 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,9 @@ install: +ifeq (${VIRTUAL_ENV},) pip install --user -r requirements.txt +else + pip install -r requirements.txt +endif test: python test.py @@ -7,6 +11,19 @@ test: run: python portfolio.py +release_version = $(shell git describe --tags --always) +release_file = trader_$(release_version).tar.gz +folder = ~/.no_backup/projets/git.immae.eu/releases/cryptoportfolio/trader + +build_release: + git archive HEAD -o $(release_file) + mv $(release_file) $(folder) + @echo "====== Version information ======" + @echo "$(release_version)" + @echo -n "sha256: " + @sha256sum $(folder)/$(release_file) | cut -d' ' -f1 + @echo "=================================" + test_coverage_unit: coverage run --source=. --omit=test.py test.py --onlyunit coverage report -m