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>
This commit is contained in:
parent
8ed205a380
commit
8987cda9e1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user