Skip to content

Commit d7aa8a6

Browse files
committed
Create Makefile for testing / watch + tests and docs
See also: #141
1 parent 762fc54 commit d7aa8a6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
test:
2+
./run-tests.py
3+
4+
watch_test:
5+
if command -v entr > /dev/null; then find . -type f -not -path '*/\.*' | grep -i '.*[.]py' | entr -c make test; else make test; echo "\nInstall entr(1) to automatically run tests on file change.\n See http://entrproject.org/"; fi
6+
7+
build_docs:
8+
cd doc && $(MAKE) html
9+
10+
watch_docs:
11+
if command -v entr > /dev/null; then find . -type f -not -path '*/\.*' | grep -i '.*[.]rst' | entr -c make build_docs; else make build_docs; echo "\nInstall entr(1) to automatically run tests on file change.\n See http://entrproject.org/"; fi

0 commit comments

Comments
 (0)