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" ]] ; then exit 0 ; fi
8 # this part needs to run in parallel unconditionally
9 export VCPU_USE="$VCPU_AVAILABLE"
12 if [[ "$DEVREL_DEPS" == "true" ]] && perl -M5.008003 -e1 &>/dev/null ; then
13 parallel_installdeps_notest $(perl -Ilib -MDBIx::Class::Optional::Dependencies=-list_missing,dist_dir)
15 run_or_err "Attempt to build a dist" "rm -rf inc/ && perl Makefile.PL --skip-author-deps && make dist"
18 elif [[ "$CLEANTEST" != "true" ]] ; then
19 parallel_installdeps_notest $(perl -Ilib -MDBIx::Class::Optional::Dependencies=-list_missing,dist_dir)
21 run_or_err "Attempt to build a dist from original checkout" "make dist"
26 if [[ -n "$tarball_assembled" ]] ; then
28 echo "Contents of the resulting dist tarball:"
29 echo "==========================================="
30 tar -vzxf DBIx-Class-*.tar.gz
31 echo "==========================================="
33 # kill as much as possible with fire
36 # make sure we are retrying with newest CPAN possible
38 # not running tests on CPAN.pm - they are not terribly slow,
39 # but https://rt.cpan.org/Ticket/Display.html?id=96437 sucks
40 parallel_installdeps_notest CPAN
41 run_or_err "Make sure CPAN was upgraded to at least 2.10" "perl -M'CPAN 2.010' -e1"
43 run_or_err "Re-Configuring CPAN.pm" "perl -MCPAN -e '\
46 # For the time being smoking with this setting is not realistic
47 # https://rt.cpan.org/Ticket/Display.html?id=103280
48 # https://rt.cpan.org/Ticket/Display.html?id=37641
49 # https://rt.cpan.org/Ticket/Display.html?id=77708
50 # https://rt.cpan.org/Ticket/Display.html?id=87474
51 #\$CPAN::Config->{build_requires_install_policy} = q{no};
53 \$CPAN::Config->{recommends_policy} = q{yes};
57 cd "$(find DBIx-Class-* -maxdepth 0 -type d | head -n 1)"
59 if [[ "$DEVREL_DEPS" == "true" ]] ; then
61 for e in $( env | grep 'DBICTEST.*DSN' | cut -f 1 -d '=' ) ; do
67 "Attempt to configure/test/build/install dist using latest CPAN@$(perl -MCPAN -e 'print CPAN->VERSION')" \
72 "Attempt to configure/build/install dist using latest CPAN@$(perl -MCPAN -e 'print CPAN->VERSION')" \
73 "perl -MCPAN -e 'notest( install => q{.} )'"