Skip to content

Commit 925a38c

Browse files
committed
Make some travis confs smoke latest -dev offerings from CPAN
Based on the Test::Builder dev-testing introduced in 992a24f
1 parent ab0b0a0 commit 925a38c

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

maint/travis-ci_scripts/30_before_script.bash

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,11 @@ if [[ "$POISON_ENV" = "true" ]] ; then
1111
done
1212

1313
export DBICTEST_SQLITE_REVERSE_DEFAULT_ORDER=1
14-
fi
15-
16-
# try Schwern's latest offering on a stock perl and a threaded blead
17-
# can't do this with CLEANTEST=true yet because a lot of our deps fail
18-
# tests left and right under T::B 1.5
19-
if [[ "$CLEANTEST" != "true" ]] && ( [[ -z "$BREWVER" ]] || [[ "$BREWVER" = "blead" ]] ) ; then
20-
# FIXME - there got to be a way to ask metacpan for this dynamically
21-
TEST_BUILDER_BETA_CPAN_TARBALL="M/MS/MSCHWERN/Test-Simple-1.005000_005.tar.gz"
14+
elif [[ "$CLEANTEST" != "true" ]] && ( [[ -z "$BREWVER" ]] || [[ "$BREWVER" = "blead" ]] ) ; then
15+
# try CPAN's latest offering on a stock perl and a threaded blead
16+
# can't do this with CLEANTEST=true yet because a lot of our deps fail
17+
# tests left and right under T::B 1.5
18+
PERL_CPANM_OPT="$PERL_CPANM_OPT --dev"
2219
fi
2320

2421

@@ -35,12 +32,6 @@ if [[ "$CLEANTEST" = "true" ]]; then
3532

3633
mv ~/.cpanm/latest-build/DBIx-Class-*/inc .
3734

38-
# this should be installable anywhere, regardles of prereqs
39-
if [[ -n "$TEST_BUILDER_BETA_CPAN_TARBALL" ]] ; then
40-
run_or_err "Pre-installing dev-beta of Test::Builder ($TEST_BUILDER_BETA_CPAN_TARBALL)" \
41-
"cpan $TEST_BUILDER_BETA_CPAN_TARBALL"
42-
fi
43-
4435
# older perls do not have a CPAN which understands configure_requires
4536
# properly and what is worse a `cpan Foo` run exits with 0 even if some
4637
# modules failed to install

0 commit comments

Comments
 (0)