diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-03-04 19:35:12 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-03-04 19:35:12 +0100 |
commit | 123411ccb5e004d38a9c75cb621a732a29edb09a (patch) | |
tree | 5edc97b0a19a5786d4442a9e4c046453daed0912 | |
parent | f861492d29f8f646410f7b24f68e0bf6d877ecee (diff) | |
download | Trader-123411ccb5e004d38a9c75cb621a732a29edb09a.tar.gz Trader-123411ccb5e004d38a9c75cb621a732a29edb09a.tar.zst Trader-123411ccb5e004d38a9c75cb621a732a29edb09a.zip |
Add build_release in Makefile
-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 |