X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=maint%2Ftravis-ci_scripts%2F30_before_script.bash;h=93fe1cff9f9e5c3fff31169da360b5f2a4e4d0ea;hb=fe5a6296f7555301560e3e2717cec4ab6831089a;hp=3d0358cf3773cc686ba5f4cd16727d987edb0424;hpb=0dc1779c32f3eeef8fabc5f8441d6265cfff0ff9;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/maint/travis-ci_scripts/30_before_script.bash b/maint/travis-ci_scripts/30_before_script.bash index 3d0358c..93fe1cf 100755 --- a/maint/travis-ci_scripts/30_before_script.bash +++ b/maint/travis-ci_scripts/30_before_script.bash @@ -1,6 +1,8 @@ #!/bin/bash +# this file is executed in a subshell - set up the common stuff source maint/travis-ci_scripts/common.bash + if [[ -n "$SHORT_CIRCUIT_SMOKE" ]] ; then return ; fi # poison the environment @@ -77,9 +79,9 @@ if [[ "$CLEANTEST" = "true" ]]; then # handholding if [[ "$DEVREL_DEPS" == "true" ]] ; then - # We are not "quite ready" for SQLA 1.99, do not consider it + # We are not "quite ready" for DBIC 0.089xx, do not consider it # - installdeps 'SQL::Abstract~<1.99' + installdeps 'DBIx::Class~<0.08900' elif ! CPAN_is_sane ; then # no configure_requires - we will need the usual suspects anyway @@ -93,6 +95,9 @@ else # using SQLT and set up whatever databases necessary export DBICTEST_SQLT_DEPLOY=1 + # Include Moose-using tests + export SCHEMA_LOADER_TESTS_USE_MOOSE=1 + # do the preinstall in several passes to minimize amount of cross-deps installing # multiple times, and to avoid module re-architecture breaking another install # (e.g. once Carp is upgraded there's no more Carp::Heavy, @@ -105,10 +110,25 @@ else parallel_installdeps_notest File::Spec Data::Dumper Module::Runtime parallel_installdeps_notest Test::Exception Encode::Locale Test::Fatal parallel_installdeps_notest Test::Warn B::Hooks::EndOfScope Test::Differences HTTP::Status - parallel_installdeps_notest Test::Pod::Coverage Test::EOL Devel::GlobalDestruction Sub::Name MRO::Compat Class::XSAccessor URI::Escape HTML::Entities + parallel_installdeps_notest Test::Pod::Coverage Test::EOL Devel::GlobalDestruction Sub::Util MRO::Compat Class::XSAccessor URI::Escape HTML::Entities parallel_installdeps_notest YAML LWP Class::Trigger JSON::XS DateTime::Format::Builder Class::Accessor::Grouped Package::Variant parallel_installdeps_notest SQL::Abstract Moose Module::Install JSON SQL::Translator File::Which parallel_installdeps_notest Module::Install::ReadmeFromPod + parallel_installdeps_notest Math::Base36 DBD::mysql DBD::Pg Math::BigInt + parallel_installdeps_notest MooseX::NonMoose MooseX::MarkAsMethods namespace::autoclean + + if env | grep -q '^DBICTEST_.*_ODBC_DSN'; then + parallel_installdeps_notest DBD::ODBC + fi + if [[ -n "$DBICTEST_ORA_DSN" ]]; then + parallel_installdeps_notest DBD::Oracle + fi + if [[ -n "$DBICTEST_DB2_DSN" ]]; then + parallel_installdeps_notest DBD::DB2 + fi + if [[ -n "$DBICTEST_FIREBIRD_DSN" ]]; then + parallel_installdeps_notest DBD::Firebird + fi if [[ -n "$DBICTEST_FIREBIRD_INTERBASE_DSN" ]] ; then # the official version is very much outdated and does not compile on 5.14+ @@ -209,9 +229,9 @@ while (@chunks) { else # listalldeps is deliberate - will upgrade everything it can find - # we exclude SQLA specifically, since we do not want to pull - # in 1.99_xx on bleadcpan runs - deplist="$(make listalldeps | grep -vP '^(SQL::Abstract)$')" + # we exclude DBIC specifically, since we do not want to pull + # in 0.089xx on bleadcpan runs + deplist="$(make listalldeps | grep -vP '^(DBIx::Class)$')" # assume MDV on POISON_ENV, do not touch DBI/SQLite if [[ "$POISON_ENV" = "true" ]] ; then @@ -247,24 +267,4 @@ echo_err " ===================== DEPENDENCY CONFIGURATION COMPLETE ===================== $(tstamp) Configuration phase seems to have taken $(date -ud "@$SECONDS" '+%H:%M:%S') (@$SECONDS) -= CPUinfo -$(perl -0777 -p -e 's/.+\n\n(?!\z)//s' < /proc/cpuinfo) - -= Meminfo -$(free -m -t) - -= Kernel info -$(uname -a) - -= Network Configuration -$(ip addr) - -= Network Sockets Status -$(sudo netstat -an46p | grep -Pv '\s(CLOSING|(FIN|TIME|CLOSE)_WAIT.?|LAST_ACK)\s') - -= Environment -$(env | grep -P 'TEST|HARNESS|MAKE|TRAVIS|PERL|DBIC' | LC_ALL=C sort | cat -v) - -= Perl in use -$(perl -V) -=============================================================================" +$(ci_vm_state_text)"