aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '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