-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
31 lines (24 loc) · 993 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
export PYTHONPATH:= ${PWD}
export BUNCH_DEPENDENCIES:=dependencies.txt
all: help
help:
@echo "make check"
@echo "make unit"
@echo "make check_dependencies"
@echo "make clean"
check: clean check_dependencies unit functional
check_dependencies:
@echo "Checking for dependencies to run tests ..."
@for dependency in `cat $$BUNCH_DEPENDENCIES`; do \
python -c "import $$dependency" 2>/dev/null || (echo "You must install $$dependency in order to run bunch's tests" && exit 3) ; \
done
unit: clean
@echo "Running unit tests ..."
@nosetests -s --verbosity=2 --with-coverage --cover-erase --cover-inclusive tests/unit --cover-package=bunch
functional: clean
@echo "Running functional tests ..."
@nosetests -s --verbosity=2 --with-coverage --cover-erase --cover-inclusive tests/functional --cover-package=bunch
clean:
@printf "Cleaning up files that are already in .gitignore... "
@for pattern in `cat .gitignore `; do find . -path "$$pattern" | xargs rm -rf; done
@echo "OK!"