forked from box/ClusterRunner
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (28 loc) · 931 Bytes
/
Makefile
File metadata and controls
37 lines (28 loc) · 931 Bytes
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
.PHONY: all lint test init pylint pep8 test-unit test-unit-via-clusterrunner test-functional freeze
# Macro for printing a colored message to stdout
print_msg = @printf "\n\033[1;34m***%s***\033[0m\n" "$(1)"
all: lint test
lint: pylint pep8
test: test-unit test-functional
init:
$(call print_msg, Installing requirements... )
pip install -r requirements.txt
pylint:
$(call print_msg, Running pylint... )
PYTHONPATH=.:${PYTHONPATH} pylint --load-plugins=test.framework.pylint app
pep8:
$(call print_msg, Running pep8... )
pep8 --max-line-length=160 app
test-unit:
$(call print_msg, Running unit tests... )
nosetests -v test/unit
test-unit-via-clusterrunner:
$(call print_msg, Running unit tests via ClusterRunner... )
./main.py build
./main.py stop
test-functional:
$(call print_msg, Running functional tests... )
nosetests -s -v test/functional
freeze:
$(call print_msg, Freezing... )
python setup.py build