-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (27 loc) · 843 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env make
#
# Make file for matmod-python-exercises
# target: help - displays this help text
# target:
.PHONY: help
help:
@echo 'help - displays this help text'
@echo 'clear-cache - clearing the cache'
@echo 'install - install dependencies for test environment'
@echo 'test - running python unittest\n'
# target: clear-cache - clearing the cache
.PHONY: clear-cache
clear-cache:
@echo "removing ./*/__pycache__"
@rm -rf ./*/__pycache__
@echo "All done!"
# target: dependencies - prepare test environment
.PHONY: install
install:
pip install coverage
# target: test - running python unittest
.PHONY: test
test:
cd 01 && coverage run exercises01test.py
cd 02 && coverage run exercises02test.py
coverage combine 01/.coverage 02/.coverage