Jelajahi Sumber

Makefile: Show error if target pep8 fails.

Ask Solem 15 tahun lalu
induk
melakukan
d4a5cd85c7
1 mengubah file dengan 8 tambahan dan 1 penghapusan
  1. 8 1
      Makefile

+ 8 - 1
Makefile

@@ -1,7 +1,8 @@
 PEP8=pep8
 
 pep8:
-	find . -name "*.py" | xargs pep8
+	(find . -name "*.py" | xargs pep8 | perl -nle'\
+		print; $$a=1 if $$_}{exit($$a)')
 
 ghdocs:
 	contrib/doc2ghpages
@@ -14,3 +15,9 @@ bump:
 
 coverage:
 	(cd testproj; python manage.py test --figleaf)
+
+test:
+	(cd testproj; python manage.py test)
+
+releaseok: pep8 autodoc test
+