forked from ynnk/cello
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (42 loc) · 1.28 KB
/
Makefile
File metadata and controls
56 lines (42 loc) · 1.28 KB
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
# Makefile for Cello
.PHONY: help tests clean nbconvert doc testall
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " help prints this help"
@echo " doc build doc + tests "
@echo " test runs unit tests"
@echo " testlib runs unit tests on lib cello only"
@echo " testall runs all unit tests doc+rst"
@echo " testcov runs coverage unit tests:"
@echo " $ py.test --cov PATH_OR_FILE --cov-report term-missing"
clean-doc:
rm -rf docs/_build/ docs/_templates/
doc:
#ipython nbconvert --to rst notebooks/Cello*.ipynb
#mv Cello*.rst ./docs
make -C ./docs html
#py.test -v ./docs
publish-doc:
rm -rf ./doc/_build/
#ipython nbconvert --to rst notebooks/Cello*.ipynb
#mv Cello*.rst ./docs
make -C ./docs html
scp -r ./docs/_build/html/* 192.168.122.99:/var-hdd/www-proxteam/doc/cello/
#py.test -v ./docs
test:
py.test -v ./tests --cov cello --cov-report html
testlib:
py.test -v ./cello
testall:
py.test -v ./tests ./cello --doctest-module --cov cello --cov-report html
test_providers:
py.test -v ./tests_providers
testcov:
py.test --cov cello --cov-report term-missing
testdoc:
py.test -v ./docs --doctest-glob='*.rst'
clean:
# removing .pyc filesin
find ./ -iname *.pyc | xargs rm
find ./ -iname *.py~ | xargs rm
all: help