diff options
-rw-r--r-- | Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -7,6 +7,19 @@ test: | |||
7 | run: | 7 | run: |
8 | python portfolio.py | 8 | python portfolio.py |
9 | 9 | ||
10 | release_version = $(shell git describe --tags --always) | ||
11 | release_file = trader_$(release_version).tar.gz | ||
12 | folder = ~/.no_backup/projets/git.immae.eu/releases/cryptoportfolio/trader | ||
13 | |||
14 | build_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 | |||
10 | test_coverage_unit: | 23 | test_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 |