aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile32
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 @@
1test:
2 python test.py
3
4run:
5 python portfolio.py
6
7test_coverage_unit:
8 coverage run --source=. --omit=test.py test.py --onlyunit
9 coverage report -m
10
11test_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
16test_coverage_acceptance:
17 coverage run --source=. --omit=test.py test.py --onlyacceptance
18 coverage report -m
19
20test_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
25test_coverage_all:
26 coverage run --source=. --omit=test.py test.py
27 coverage report -m
28
29test_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"