3 # this file is executed in a subshell - set up the common stuff
4 source maint/travis-ci_scripts/common.bash
6 if [[ -n "$SHORT_CIRCUIT_SMOKE" ]] || [[ "$TRAVIS_PULL_REQUEST" != "false" ]] ; then exit 0 ; fi
8 # this part needs to run in parallel unconditionally
9 export VCPU_USE="$VCPU_AVAILABLE"
10 export HARNESS_OPTIONS="j$VCPU_USE"
13 if [[ "$DEVREL_DEPS" == "true" ]] && perl -M5.008003 -e1 &>/dev/null ; then
14 # FIXME - these really need to be installed *with* testing under "allowed failures"
15 # Change when Moose goes away
16 parallel_installdeps_notest Moose
17 parallel_installdeps_notest $(perl -Ilib -MDBIx::Class::Optional::Dependencies=-list_missing,dist_dir)
19 run_or_err "Attempt to build a dist" "rm -rf inc/ && perl Makefile.PL --skip-author-deps && make dist"
22 elif [[ "$CLEANTEST" != "true" ]] ; then
23 parallel_installdeps_notest $(perl -Ilib -MDBIx::Class::Optional::Dependencies=-list_missing,dist_dir)
25 run_or_err "Attempt to build a dist from original checkout" "make dist"
30 if [[ -n "$tarball_assembled" ]] ; then
32 echo "Contents of the resulting dist tarball:"
33 echo "==========================================="
34 tar -vzxf DBIx-Class-*.tar.gz
35 echo "==========================================="
37 # kill as much as possible with fire
41 # undo some of the pollution (if any) affecting the plain install deps
42 # FIXME - this will go away once we move off Moose, and a new SQLT
43 # with much less recommends ships
44 export DBICTEST_SQLT_DEPLOY=""
45 export DBICTEST_VIA_REPLICATED=""
48 # make sure we are retrying with newest CPAN possible
50 # not running tests on CPAN.pm - they are not terribly slow,
51 # but https://rt.cpan.org/Ticket/Display.html?id=96437 sucks
52 parallel_installdeps_notest CPAN
53 run_or_err "Make sure CPAN was upgraded to at least 2.10" "perl -M'CPAN 2.010' -e1"
55 run_or_err "Re-Configuring CPAN.pm" "perl -MCPAN -e '\
58 # For the time being smoking with this setting is not realistic
59 # https://rt.cpan.org/Ticket/Display.html?id=103280
60 # https://rt.cpan.org/Ticket/Display.html?id=37641
61 # https://rt.cpan.org/Ticket/Display.html?id=77708
62 # https://rt.cpan.org/Ticket/Display.html?id=87474
63 #\$CPAN::Config->{build_requires_install_policy} = q{no};
65 \$CPAN::Config->{recommends_policy} = q{yes};
69 cd "$(find DBIx-Class-* -maxdepth 0 -type d | head -n 1)"
71 # only run a full test cycle on devrel_deps, as they are all marked
72 # as "allow fails" in the travis matrix
73 if [[ "$DEVREL_DEPS" == "true" ]] ; then
75 for e in $( env | grep 'DBICTEST.*DSN' | cut -f 1 -d '=' ) ; do
81 "Attempt to configure/test/build/install dist using latest CPAN@$(perl -MCPAN -e 'print CPAN->VERSION')" \
86 "Attempt to configure/build/install dist using latest CPAN@$(perl -MCPAN -e 'print CPAN->VERSION')" \
87 "perl -MCPAN -e 'notest( install => q{.} )'"