diff --git a/.travis.yml b/.travis.yml index 7c881540c..41d468dbe 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,8 @@ matrix: env: COVERAGE=1 - perl: "5.20" env: EUMM_BLEAD=1 + - perl: "5.20" + env: TEST_INSTALLED=1 # test not from blib but after installing - perl: "5.10" - perl: "5.12" - perl: "5.14" @@ -57,14 +59,15 @@ before_install: - cd $BUILD_DIR # $BUILD_DIR is set by the build-dist command install: - cpan-install --deps # installs prereqs, including recommends - - cpan-install --coverage # installs converage prereqs, if enabled + - cpan-install --coverage # installs coverage prereqs, if enabled - prove t/00-report-prereqs.t t/01-checkmanifest.t # 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: - - if [ "$SERIAL_TESTING" == 1 ]; then prove -b -v $(test-files); else prove --formatter TAP::Formatter::File -j$(test-jobs) -b -v $(test-files); fi + - export PROVE_FLAG=""; if [ "$TEST_INSTALLED" == 1 ]; then make install clean; else PROVE_FLAG="-b -v"; fi # clean is to ensure no blib + - 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 'print Dumper \%PDL::Config' after_success: diff --git a/t/inline-comment-test.t b/t/inline-comment-test.t index 6ceb6905a..1e5902b3d 100644 --- a/t/inline-comment-test.t +++ b/t/inline-comment-test.t @@ -5,9 +5,8 @@ # -- DCM, April 16, 2012 use strict; +use warnings; use Test::More; -use blib; # otherwise possible error on virgin systems not finding PDL::Core - use PDL::LiteF; # First some Inline administivia. diff --git a/t/inline-with.t b/t/inline-with.t index f1efe99ba..58edc2568 100644 --- a/t/inline-with.t +++ b/t/inline-with.t @@ -2,9 +2,8 @@ # Also that the XS code in PDL::API works. use strict; +use warnings; use Test::More; -use blib; # otherwise possible error on virgin systems not finding PDL::Core - use PDL::LiteF; my $inline_test_dir; diff --git a/t/inlinepdlpp.t b/t/inlinepdlpp.t index 4cdbd9878..386b89cee 100644 --- a/t/inlinepdlpp.t +++ b/t/inlinepdlpp.t @@ -1,7 +1,6 @@ use strict; +use warnings; use Test::More; -use blib; # otherwise possible error on virgin systems not finding PDL::Core - use PDL::LiteF; BEGIN {