Navigation Menu

Skip to content

Commit

Permalink
Add Travis case for testing not blib but installed
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Apr 10, 2015
1 parent babaa0e commit 1740ed9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Expand Up @@ -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"
Expand Down Expand Up @@ -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"; fi # clean is to ensure no blib
- if [ "$SERIAL_TESTING" == 1 ]; then prove $PROVE_FLAG -v $(test-files); else prove --formatter TAP::Formatter::File -j$(test-jobs) $PROVE_FLAG -v $(test-files); fi
after_script:
- perl -Iblib/lib -MPDL::Config -MData::Dumper -e 'print Dumper \%PDL::Config'
after_success:
Expand Down

0 comments on commit 1740ed9

Please sign in to comment.