Skip to content

Commit

Permalink
Travis-CI: set SPLIT_BUILD to false to use the run's version of Perl …
Browse files Browse the repository at this point in the history
…for configure-time

By default, the Travis-CI helper's `build-dist` command uses Perl 5.20
for running every build run. This simulates a module author releasing a
dist for CPAN with `META.*` files.

By switching that out and running `Makefile.PL` directly, the run uses
the Perl version specific to that run, but it also becomes necessary to
install the `CONFIGURE_REQUIRES` requirements beforehand because the
`META.*` files are not generated yet.
  • Loading branch information
zmughal committed Mar 14, 2015
1 parent d751ac7 commit 263d8ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -42,8 +42,9 @@ before_install:
- build-perl
- perl -V
- cpanm --quiet --notest ExtUtils::F77 Term::ReadLine::Gnu PGPLOT # do not need tests
- cpanm --quiet --notest Devel::CheckLib # specify this now because this is a CONFIGURE_REQUIRES for author-side
- cpanm --force --verbose ExtUtils::ParseXS # we install the latest ExtUtils::ParseXS
- build-dist
- SPLIT_BUILD=0 build-dist
- cd $BUILD_DIR # $BUILD_DIR is set by the build-dist command
install:
- cpan-install --deps # installs prereqs, including recommends
Expand Down

0 comments on commit 263d8ae

Please sign in to comment.