From 123411ccb5e004d38a9c75cb621a732a29edb09a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 4 Mar 2018 19:35:12 +0100 Subject: [PATCH] Add build_release in Makefile --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Makefile b/Makefile index f811376..dfbe3b4 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,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 -- 2.41.0