summaryrefslogtreecommitdiff
path: root/contrib/mw-to-git
diff options
context:
space:
mode:
authorMatthieu Moy <Matthieu.Moy@imag.fr>2013-08-29 18:58:21 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-08-29 19:07:24 (GMT)
commit8987cda9e1e1c36e5d0a9be6d371697e50773856 (patch)
treeb77a09d77f6b8b5570f33e5b309eb3639c3956d7 /contrib/mw-to-git
parent8ed205a380a3ec5e92fb8ae69f5cb20b6cbaa636 (diff)
downloadgit-8987cda9e1e1c36e5d0a9be6d371697e50773856.zip
git-8987cda9e1e1c36e5d0a9be6d371697e50773856.tar.gz
git-8987cda9e1e1c36e5d0a9be6d371697e50773856.tar.bz2
git-remote-mediawiki: add test and check Makefile targets
There are a few level 4 and 2 perlcritic issues in the current code. We make level 5 fatal, and keep level 2 as warnings. Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/mw-to-git')
-rw-r--r--contrib/mw-to-git/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/contrib/mw-to-git/Makefile b/contrib/mw-to-git/Makefile
index 76fcd4d..f206f96 100644
--- a/contrib/mw-to-git/Makefile
+++ b/contrib/mw-to-git/Makefile
@@ -24,6 +24,11 @@ INSTLIBDIR=$(shell $(MAKE) -C $(GIT_ROOT_DIR)/perl \
all: build
+test: all
+ $(MAKE) -C t
+
+check: perlcritic test
+
install_pm:
install $(GIT_MEDIAWIKI_PM) $(INSTLIBDIR)/$(GIT_MEDIAWIKI_PM)
@@ -41,4 +46,7 @@ clean:
rm $(INSTLIBDIR)/$(GIT_MEDIAWIKI_PM)
perlcritic:
- perlcritic -2 *.perl
+ perlcritic -5 $(SCRIPT_PERL)
+ -perlcritic -2 $(SCRIPT_PERL)
+
+.PHONY: all test check install_pm install clean perlcritic