Unverified Commit dbde4572 authored by IKEDA Soji's avatar IKEDA Soji Committed by GitHub
Browse files

Merge pull request #322 from sympa-community/add-perltidy-test by ldidry

Add Perltidy test in xt (related to #319)
parents ad27668d fcb6bed6
......@@ -32,6 +32,7 @@ install:
- cpanm --notest --quiet CGI::Fast FCGI
- cpanm --notest --quiet Unicode::CaseFold
- cpanm --notest --quiet SOAP::Lite Net::LDAP
- cpanm --installdeps . --with-develop
before_script:
- coverage-setup
......@@ -40,6 +41,7 @@ script:
- autoreconf -i
- ./configure
- cd src; make; cd ..
- make check-local TEST_FILES='xt/perltidy.t' || true
- make check-local TEST_FILES='t/compile_executables.t t/compile_modules.t t/Language.t t/parse_templates.t t/pod-syntax.t'
after_success:
......
......@@ -58,7 +58,8 @@ noinst_SCRIPTS = \
xt/fixme.t \
xt/fixme-todo.t \
xt/pod-coverage.t \
xt/pod-spelling.t
xt/pod-spelling.t \
xt/perltidy.t
EXTRA_DIST = \
AUTHORS.md \
......
on 'develop' => sub {
requires 'Test::Fixme';
requires 'Test::PerlTidy';
requires 'Perl::Tidy', '== 20180220';
};
......@@ -6,7 +6,7 @@
-cti=0 # No extra indentation for closing brackets
-i=4 # Indent level is 4 cols
-ci=4 # Continuation indent is 4 cols
-l=78 # Max line witdh is 78 cols
-l=78 # Max line width is 78 cols
-nolc # Don't outdent long comments (* -olc)
-nolq # Don't outdent long quoted strings
-nsbl # No opening sub brace on new line (* -sbl)
......
use strict;
use warnings;
use Test::PerlTidy;
use FindBin qw($Bin);
run_tests(
path => "$Bin/../src/",
perltidyrc => "$Bin/../doc/dot.perltidyrc"
);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment