diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 4 insertions, 11 deletions
@@ -15,6 +15,8 @@ release_version = $(shell git describe --tags --always) | |||
15 | release_file = trader_$(release_version).tar.gz | 15 | release_file = trader_$(release_version).tar.gz |
16 | folder = ~/.no_backup/projets/git.immae.eu/releases/cryptoportfolio/trader | 16 | folder = ~/.no_backup/projets/git.immae.eu/releases/cryptoportfolio/trader |
17 | 17 | ||
18 | coverage_omit = "tests/*.py,test.py,test_acceptance.py" | ||
19 | |||
18 | build_release: | 20 | build_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 | ||
27 | test_coverage_unit: | 29 | test_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 | ||
31 | test_coverage_unit_html: test_coverage_unit | 33 | test_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 | ||
36 | test_coverage_acceptance: | 38 | test_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 | ||
40 | test_coverage_acceptance_html: test_coverage_acceptance | 42 | test_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 | |||
45 | test_coverage_all: | ||
46 | coverage run --source=. --omit=test.py test.py | ||
47 | coverage report -m | ||
48 | |||
49 | test_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" | ||