forked from starhawking/python-terrascript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
56 lines (39 loc) · 1.11 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
NOSE := python3 -m nose --failed --verbose --with-coverage --cover-package=terrascript --stop --no-byte-compile --logging-level=DEBUG --detailed-errors
# The tests must be executed in this order!!
TESTS := tests/test.py tests/test_providers.py
TEST_ISSUES := $(wildcard tests/test_issue*.py)
NOSEIDS = $(shell ./.read_noseids.py)
all: help
help:
@echo "make test"
@echo "make test_issues"
@echo "make debug"
@echo "make debug_issues"
@echo "make code"
@echo "make package"
@echo "make install"
noseids:
python3 -m nose --collect-only --with-id --id-file=.noseids $(TESTS)
test2:
$(NOSE) --processes=165 --process-restartworker --process-timeout=30 $(TESTS)
test:
$(NOSE) --with-id $(TESTS) $(TEST_ISSUES)
test_issues:
$(NOSE) --with-id $(TEST_ISSUES)
debug:
$(NOSE) --with-id --pdb $(TESTS) $(TEST_ISSUES)
debug_issues:
$(NOSE) --with-id --pdb $(TEST_ISSUES)
code: clean
./makecode.py
package: clean
python3 setup.py clean
python3 setup.py sdist
install: clean
python3 setup.py install --user
clean:
rm -f tests/*.pyc
rm -f terrascript/*.pyc
rm -f terrascript/*/*.pyc
rm -f .coverage
rm -f .noseid*