aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-04 19:35:12 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-04 19:35:12 +0100
commit123411ccb5e004d38a9c75cb621a732a29edb09a (patch)
tree5edc97b0a19a5786d4442a9e4c046453daed0912
parentf861492d29f8f646410f7b24f68e0bf6d877ecee (diff)
downloadTrader-123411ccb5e004d38a9c75cb621a732a29edb09a.tar.gz
Trader-123411ccb5e004d38a9c75cb621a732a29edb09a.tar.zst
Trader-123411ccb5e004d38a9c75cb621a732a29edb09a.zip
Add build_release in Makefile
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f811376..dfbe3b4 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,19 @@ test:
7run: 7run:
8 python portfolio.py 8 python portfolio.py
9 9
10release_version = $(shell git describe --tags --always)
11release_file = trader_$(release_version).tar.gz
12folder = ~/.no_backup/projets/git.immae.eu/releases/cryptoportfolio/trader
13
14build_release:
15 git archive HEAD -o $(release_file)
16 mv $(release_file) $(folder)
17 @echo "====== Version information ======"
18 @echo "$(release_version)"
19 @echo -n "sha256: "
20 @sha256sum $(folder)/$(release_file) | cut -d' ' -f1
21 @echo "================================="
22
10test_coverage_unit: 23test_coverage_unit:
11 coverage run --source=. --omit=test.py test.py --onlyunit 24 coverage run --source=. --omit=test.py test.py --onlyunit
12 coverage report -m 25 coverage report -m