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
15 [[ "$BREAK_CC" == "true" ]] && run_or_err "Unbreaking previously broken ~/bin/cc" "rm $HOME/bin/cc"
17 # FIXME - Devel::Cover (brought by Test::Strict, but soon needed anyway)
18 # does not test cleanly on 5.8.7 - just get it directly
19 if perl -M5.008007 -e1 &>/dev/null && ! perl -M5.008008 -e1 &>/dev/null; then
20 parallel_installdeps_notest Devel::Cover
23 # FIXME - workaround for YAML/RT#81120 and L::SRH/RT#107681
24 # We don't actually need these modules, only there because of SQLT (which will be fixed)
25 # does not test cleanly on 5.8.7 - just get them directly
26 if ! perl -M5.008008 -e1 &>/dev/null; then
27 parallel_installdeps_notest YAML Lexical::SealRequireHints
30 # FIXME Change when Moose goes away
31 installdeps Moose $(perl -Ilib -MDBIx::Class::Optional::Dependencies=-list_missing,dist_dir)
33 run_or_err "Attempt to build a dist" "rm -rf inc/ && perl Makefile.PL && make dist"
36 elif [[ "$CLEANTEST" != "true" ]] ; then
38 parallel_installdeps_notest $(perl -Ilib -MDBIx::Class::Optional::Dependencies=-list_missing,dist_dir)
40 run_or_err "Attempt to build a dist from original checkout" "make dist"
45 if [[ -n "$tarball_assembled" ]] ; then
47 echo "Contents of the resulting dist tarball:"
48 echo "==========================================="
49 tar -vzxf DBIx-Class-*.tar.gz
50 echo "==========================================="
52 # kill as much as possible with fire
56 # undo some of the pollution (if any) affecting the plain install deps
57 # FIXME - this will go away once we move off Moose, and a new SQLT
58 # with much less recommends ships
59 export DBICTEST_SQLT_DEPLOY=""
60 export DBICTEST_VIA_REPLICATED=""
63 # make sure we are retrying with newest CPAN possible
65 # not running tests on CPAN.pm - they are not terribly slow,
66 # but https://rt.cpan.org/Ticket/Display.html?id=96437 sucks
67 parallel_installdeps_notest CPAN
68 run_or_err "Make sure CPAN was upgraded to at least 2.10" "perl -M'CPAN 2.010' -e1"
70 run_or_err "Re-Configuring CPAN.pm" "perl -MCPAN -e '\
73 # For the time being smoking with this setting is not realistic
74 # https://rt.cpan.org/Ticket/Display.html?id=103280
75 # https://rt.cpan.org/Ticket/Display.html?id=37641
76 # https://rt.cpan.org/Ticket/Display.html?id=77708
77 # https://rt.cpan.org/Ticket/Display.html?id=87474
78 #\$CPAN::Config->{build_requires_install_policy} = q{no};
80 \$CPAN::Config->{recommends_policy} = q{yes};
84 cd "$(find DBIx-Class-* -maxdepth 0 -type d | head -n 1)"
86 # only run a full test cycle on devrel_deps, as they are all marked
87 # as "allow fails" in the travis matrix
88 if [[ "$DEVREL_DEPS" == "true" ]] ; then
90 for e in $( env | grep 'DBICTEST.*DSN' | cut -f 1 -d '=' ) ; do
95 # FIXME - for some reason a plain `cpan .` does not work in this case
96 # no time to investigate
98 "Attempt to configure/test/build/install dist using latest CPAN@$(perl -MCPAN -e 'print CPAN->VERSION')" \
99 "perl -MCPAN -e 'install( q{.} )'"
103 "Attempt to configure/build/install dist using latest CPAN@$(perl -MCPAN -e 'print CPAN->VERSION')" \
104 "perl -MCPAN -e 'notest( install => q{.} )'"