Browse Source

Validate document as well for test make target

Matthew Wang 10 years ago
parent
commit
be3a84c2a7
1 changed files with 6 additions and 3 deletions
  1. 6
    3
      Makefile

+ 6
- 3
Makefile View File

3
 TESTPYPI = http://testpypi.python.org/pypi
3
 TESTPYPI = http://testpypi.python.org/pypi
4
 PYPI = http://pypi.python.org/pypi
4
 PYPI = http://pypi.python.org/pypi
5
 
5
 
6
-.PHONY: dogfood doc-check clean build dist-test dist \
6
+.PHONY: dogfood doc-check doc-preview clean build dist-test dist \
7
 	test test3 cov cov3 html reg reg3 profile profile3
7
 	test test3 cov cov3 html reg reg3 profile profile3
8
 
8
 
9
 dogfood:
9
 dogfood:
11
 	git diff | ./cdiff.py -s
11
 	git diff | ./cdiff.py -s
12
 
12
 
13
 doc-check:
13
 doc-check:
14
+	./setup.py --long-description | rst2html.py --strict > /dev/null
15
+
16
+doc-preview:
14
 	./setup.py --long-description | rst2html.py --strict > output.html
17
 	./setup.py --long-description | rst2html.py --strict > output.html
15
 	python -m webbrowser -n "file://$(shell pwd)/output.html"
18
 	python -m webbrowser -n "file://$(shell pwd)/output.html"
16
 	sleep 1
19
 	sleep 1
17
 	rm -f output.html
20
 	rm -f output.html
18
 
21
 
19
-test: cov reg
22
+test: doc-check cov reg
20
 
23
 
21
-test3: cov3 reg3
24
+test3: doc-check cov3 reg3
22
 
25
 
23
 cov:
26
 cov:
24
 	coverage run tests/test_cdiff.py
27
 	coverage run tests/test_cdiff.py