forked from sunpy/ablog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (19 loc) · 902 Bytes
/
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
.PHONY: demo rebuild tests
demo:
rm -rf demo
printf "demo\nABlog\nABlog Team\nhttps://ablog.readthedocs.io/" | ablog start
rebuild:
cd docs; watchmedo shell-command --patterns='*.rst' --command='ablog build' --recursive
test:
set -e; cd docs; ablog build -T -W; git clean -xfd; cd ..
test1:
set -e; cd docs; ablog build -T -W -b json; git clean -xfd; cd ..
test2:
set -e; cd docs; ablog build -T -W -b pickle; git clean -xfd; cd ..
test3:
set -e; mkdir -p test; cd test; printf "\nABlog\nABlog Team\nhttps://ablog.readthedocs.io/" | ablog start; ablog build -W; cd ..; rm -rf test
test4:
set -e; mkdir -p testablog; cd testablog; printf "\nABlog\nABlog Team\nhttps://ablog.readthedocs.io/" | ablog start; ablog build -W; cd ..; rm -rf testablog
test5:
set -e; cd docs; ablog build -W -b latex -T -d .doctrees -w _latex; git clean -xfd; cd ..
tests: test test1 test2 test3 test4 test5