aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 4 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 534bf88..e304426 100644
--- a/Makefile
+++ b/Makefile
@@ -15,6 +15,8 @@ release_version = $(shell git describe --tags --always)
15release_file = trader_$(release_version).tar.gz 15release_file = trader_$(release_version).tar.gz
16folder = ~/.no_backup/projets/git.immae.eu/releases/cryptoportfolio/trader 16folder = ~/.no_backup/projets/git.immae.eu/releases/cryptoportfolio/trader
17 17
18coverage_omit = "tests/*.py,test.py,test_acceptance.py"
19
18build_release: 20build_release:
19 git archive HEAD -o $(release_file) 21 git archive HEAD -o $(release_file)
20 mv $(release_file) $(folder) 22 mv $(release_file) $(folder)
@@ -25,7 +27,7 @@ build_release:
25 @echo "=================================" 27 @echo "================================="
26 28
27test_coverage_unit: 29test_coverage_unit:
28 coverage run --source=. --omit=test.py test.py --onlyunit 30 coverage run --source=. --omit="$(coverage_omit)" test.py
29 coverage report -m 31 coverage report -m
30 32
31test_coverage_unit_html: test_coverage_unit 33test_coverage_unit_html: test_coverage_unit
@@ -34,19 +36,10 @@ test_coverage_unit_html: test_coverage_unit
34 @echo "coverage in https://www.immae.eu/htmlcov" 36 @echo "coverage in https://www.immae.eu/htmlcov"
35 37
36test_coverage_acceptance: 38test_coverage_acceptance:
37 coverage run --source=. --omit=test.py test.py --onlyacceptance 39 coverage run --source=. --omit="$(coverage_omit)" test_acceptance.py
38 coverage report -m 40 coverage report -m
39 41
40test_coverage_acceptance_html: test_coverage_acceptance 42test_coverage_acceptance_html: test_coverage_acceptance
41 coverage html 43 coverage html
42 rm ~/hosts/www.immae.eu/htmlcov -rf && cp -r htmlcov ~/hosts/www.immae.eu 44 rm ~/hosts/www.immae.eu/htmlcov -rf && cp -r htmlcov ~/hosts/www.immae.eu
43 @echo "coverage in https://www.immae.eu/htmlcov" 45 @echo "coverage in https://www.immae.eu/htmlcov"
44
45test_coverage_all:
46 coverage run --source=. --omit=test.py test.py
47 coverage report -m
48
49test_coverage_all_html: test_coverage_all
50 coverage html
51 rm ~/hosts/www.immae.eu/htmlcov -rf && cp -r htmlcov ~/hosts/www.immae.eu
52 @echo "coverage in https://www.immae.eu/htmlcov"