diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1464886 --- /dev/null +++ b/Makefile | |||
@@ -0,0 +1,32 @@ | |||
1 | test: | ||
2 | python test.py | ||
3 | |||
4 | run: | ||
5 | python portfolio.py | ||
6 | |||
7 | test_coverage_unit: | ||
8 | coverage run --source=. --omit=test.py test.py --onlyunit | ||
9 | coverage report -m | ||
10 | |||
11 | test_coverage_unit_html: test_coverage_unit | ||
12 | coverage html | ||
13 | rm ~/hosts/www.immae.eu/htmlcov -rf && cp -r htmlcov ~/hosts/www.immae.eu | ||
14 | @echo "coverage in https://www.immae.eu/htmlcov" | ||
15 | |||
16 | test_coverage_acceptance: | ||
17 | coverage run --source=. --omit=test.py test.py --onlyacceptance | ||
18 | coverage report -m | ||
19 | |||
20 | test_coverage_acceptance_html: test_coverage_acceptance | ||
21 | coverage html | ||
22 | rm ~/hosts/www.immae.eu/htmlcov -rf && cp -r htmlcov ~/hosts/www.immae.eu | ||
23 | @echo "coverage in https://www.immae.eu/htmlcov" | ||
24 | |||
25 | test_coverage_all: | ||
26 | coverage run --source=. --omit=test.py test.py | ||
27 | coverage report -m | ||
28 | |||
29 | test_coverage_all_html: test_coverage_all | ||
30 | coverage html | ||
31 | rm ~/hosts/www.immae.eu/htmlcov -rf && cp -r htmlcov ~/hosts/www.immae.eu | ||
32 | @echo "coverage in https://www.immae.eu/htmlcov" | ||