[pygobject] Add environment variable to disable pep8 checks



commit 25d12afd06863ce223a161ba1317bfe5503bca5c
Author: Martin Pitt <martinpitt gnome org>
Date:   Thu Oct 25 08:24:31 2012 +0200

    Add environment variable to disable pep8 checks
    
    pep8 takes quite long for "make check". Skip it if $SKIP_PEP8 is set, which
    makes the test/fix turnaround time faster.

 tests/Makefile.am |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 8391448..0cc60e7 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -126,8 +126,10 @@ RUN_TESTS_ENV_VARS= \
 check-local: $(LTLIBRARIES:.la=.so) $(test_typelibs) gschemas.compiled
 	@echo "  CHECK  Pyflakes"
 	@if type pyflakes >/dev/null 2>&1; then pyflakes $(top_srcdir); else echo "skipped, pyflakes not installed"; fi
-	@echo "  CHECK  PEP8"
-	@if type pep8 >/dev/null 2>&1; then pep8 --ignore=E501,E123,E124 --repeat --show-source $(top_srcdir); else echo "skipped, pep8 not installed"; fi
+	@if test -z "$$SKIP_PEP8"; then \
+		echo "  CHECK  PEP8"; \
+		if type pep8 >/dev/null 2>&1; then pep8 --ignore=E501,E123,E124 --repeat --show-source $(top_srcdir); else echo "skipped, pep8 not installed"; fi; \
+	fi
 	export `$(DBUS_LAUNCH)` && \
 	$(RUN_TESTS_ENV_VARS) $(EXEC_NAME) $(PYTHON) -Wd -Werror::PendingDeprecationWarning -Werror::DeprecationWarning $(srcdir)/runtests.py; rc=$$?; \
 	kill $$DBUS_SESSION_BUS_PID; \



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]