-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
42 lines (32 loc) · 964 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
33
34
35
36
37
38
39
40
41
42
PACKAGE=eventlib
all: unit functional integration steadymark
unit:
@make run_test suite=unit
functional:
@make run_test suite=functional
integration:
@make run_test suite=integration
run_test:
@if [ -d tests/$(suite) ]; then \
echo "Running \033[0;32m$(suite)\033[0m test suite"; \
make prepare; \
nosetests --stop --with-coverage --cover-package=$(PACKAGE) \
--cover-branches --verbosity=2 -s tests/$(suite) ; \
fi
steadymark:
@if hash steadymark 2>/dev/null; then \
steadymark; \
fi
prepare: clean install_deps
install_deps:
@if [ -z $$SKIP_DEPS ]; then \
echo "Installing missing dependencies..."; \
[ -e requirements.txt ] && (pip install -r requirements.txt) 2>&1>>.build.log; \
[ -e development.txt ] && (pip install -r development.txt) 2>&1>>.build.log; \
fi
clean:
@echo "Removing garbage..."
@find . -name '*.pyc' -delete
@rm -rf .coverage *.egg-info *.log build dist MANIFEST
publish:
python setup.py sdist upload