Skip to content

Commit

Permalink
manifest check is author-only -> xt, improve
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Feb 13, 2021
1 parent 807e974 commit f0d97e6
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 17 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,16 @@ before_install:
install:
- cpan-install --deps # installs prereqs, including recommends
- cpan-install --coverage # installs coverage prereqs, if enabled
- prove t/00-report-prereqs.t t/01-checkmanifest.t
- prove -b -v $SRC_DIR/xt/00-check-changelog.t # run the author test out of the source directory
- prove t/00-report-prereqs.t
- prove -b -v $SRC_DIR/xt # run the author test out of the source directory
# SYSTEM_CORES set by travis-perl-helpers
- if [ "$SERIAL_BUILD" == 1 ]; then make; else make -j$(( $SYSTEM_CORES * 2 )); fi
before_script:
- coverage-setup
script:
- env|sort
- VERBOSE_FLAG=""; if [ "$TEST_VERBOSE" == 1 ]; then VERBOSE_FLAG="-v"; fi
- PROVE_FLAG="$VERBOSE_FLAG"; if [ "$TEST_INSTALLED" == 1 ]; then make install clean; mv Basic Basic.x; mv ../Basic ../Basic.x; rm t/01-checkmanifest.t; else PROVE_FLAG="-b $PROVE_FLAG"; fi # clean is to ensure no blib, mv to ensure doesn't think is in repo!
- PROVE_FLAG="$VERBOSE_FLAG"; if [ "$TEST_INSTALLED" == 1 ]; then make install clean; mv Basic Basic.x; mv ../Basic ../Basic.x; else PROVE_FLAG="-b $PROVE_FLAG"; fi # clean is to ensure no blib, mv to ensure doesn't think is in repo!
- if [ "$SERIAL_TESTING" == 1 ]; then prove $PROVE_FLAG $(test-files); else prove --formatter TAP::Formatter::File -j$(test-jobs) $PROVE_FLAG $(test-files); fi
after_script:
- perl -Iblib/lib -MPDL::Config -MData::Dumper -e '$Data::Dumper::Sortkeys = 1; print Dumper \%PDL::Config'
Expand Down
1 change: 0 additions & 1 deletion MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,6 @@ pdldoc
perldl
perldl.conf
t/00-report-prereqs.t
t/01-checkmanifest.t
t/aaa_load.t
t/argtest.t
t/autoload.t
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.SKIP
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ RCS
\.bundle$
\.cvsignore$
\.inline-ct
\.inlinewith
\.inlinepdlpp
\.lck$
\.m$
Expand Down
1 change: 0 additions & 1 deletion Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,6 @@ my @prereq = (
'Data::Dumper' => 2.121, # for PDL::IO::Dumper
'English' => 0,
'ExtUtils::MakeMaker' => 6.56, # for CONFIGURE_REQUIRES support
'ExtUtils::Manifest' => 0,
'Fcntl' => 0,
'File::Basename' => 0,
'File::Find' => 0,
Expand Down
12 changes: 0 additions & 12 deletions t/01-checkmanifest.t

This file was deleted.

12 changes: 12 additions & 0 deletions xt/manifest.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
use strict;
use warnings;
use Test::More;
use ExtUtils::Manifest;

unless ( $ENV{RELEASE_TESTING} ) {
plan( skip_all => "Author tests not required for installation" );
}
plan tests => 2;

is_deeply [ ExtUtils::Manifest::manicheck() ], [], 'missing';
is_deeply [ ExtUtils::Manifest::filecheck() ], [], 'extra';

0 comments on commit f0d97e6

Please sign in to comment.