Skip to content

Commit 8987cda

Browse files
moygitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8ed205a commit 8987cda

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

contrib/mw-to-git/Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ INSTLIBDIR=$(shell $(MAKE) -C $(GIT_ROOT_DIR)/perl \
2424

2525
all: build
2626

27+
test: all
28+
$(MAKE) -C t
29+
30+
check: perlcritic test
31+
2732
install_pm:
2833
install $(GIT_MEDIAWIKI_PM) $(INSTLIBDIR)/$(GIT_MEDIAWIKI_PM)
2934

@@ -41,4 +46,7 @@ clean:
4146
rm $(INSTLIBDIR)/$(GIT_MEDIAWIKI_PM)
4247

4348
perlcritic:
44-
perlcritic -2 *.perl
49+
perlcritic -5 $(SCRIPT_PERL)
50+
-perlcritic -2 $(SCRIPT_PERL)
51+
52+
.PHONY: all test check install_pm install clean perlcritic

0 commit comments

Comments
 (0)