Просмотр исходного кода

Validate document as well for test make target

Matthew Wang 10 лет назад
Родитель
Сommit
be3a84c2a7
1 измененных файлов: 6 добавлений и 3 удалений
  1. 6
    3
      Makefile

+ 6
- 3
Makefile Просмотреть файл

@@ -3,7 +3,7 @@
3 3
 TESTPYPI = http://testpypi.python.org/pypi
4 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 7
 	test test3 cov cov3 html reg reg3 profile profile3
8 8
 
9 9
 dogfood:
@@ -11,14 +11,17 @@ dogfood:
11 11
 	git diff | ./cdiff.py -s
12 12
 
13 13
 doc-check:
14
+	./setup.py --long-description | rst2html.py --strict > /dev/null
15
+
16
+doc-preview:
14 17
 	./setup.py --long-description | rst2html.py --strict > output.html
15 18
 	python -m webbrowser -n "file://$(shell pwd)/output.html"
16 19
 	sleep 1
17 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 26
 cov:
24 27
 	coverage run tests/test_cdiff.py