Skip to content

Commit 27b6a25

Browse files
committed
Launch tests and build docs via Makefile
Fixes: #141
1 parent d7aa8a6 commit 27b6a25

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.tmuxp.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ windows:
1212
panes:
1313
- focus: true
1414
- pane
15-
- if command -v entr > /dev/null; then find . -type f -not -path '*/\.*' | grep -i '.*[.]py$' | entr -c ./run-tests.py; else ./run-tests.py; echo "\nInstall entr(1) to automatically run tests on file change.\n See http://entrproject.org/"; fi
15+
- make watch_test
1616

1717
- window_name: docs
1818
layout: main-horizontal
@@ -24,5 +24,5 @@ windows:
2424
panes:
2525
- focus: true
2626
- pane
27-
- echo 'docs built to <http://0.0.0.0:8003/_build/html>'; python -m SimpleHTTPServer 8003
28-
- if command -v entr > /dev/null; then find .. -print | grep -i '.*[.]rst' | entr -c make html; else make html; echo "\nInstall entr(1) to automatically rebuild documentation when files change. \nSee http://entrproject.org/"; fi
27+
- make serve
28+
- make watch

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ build_docs:
88
cd doc && $(MAKE) html
99

1010
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
11+
cd doc && $(MAKE) watch_docs

doc/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,3 +155,9 @@ doctest:
155155
checkbuild:
156156
rm -rf $(BUILDDIR)
157157
$(SPHINXBUILD) -n -q ./ $(BUILDDIR)
158+
159+
watch:
160+
if command -v entr > /dev/null; then find . -type f -not -path '*/\.*' | grep -i '.*[.]rst' | entr -c make html; else make html; echo "\nInstall entr(1) to automatically run tests on file change.\n See http://entrproject.org/"; fi
161+
162+
serve:
163+
echo 'docs built to <http://0.0.0.0:8003/_build/html>'; python -m SimpleHTTPServer 8003

0 commit comments

Comments
 (0)