From: Peter Rabbitson Date: Sun, 28 Sep 2014 10:08:49 +0000 (+0200) Subject: (travis) Re-consolidate sysinfo handling (reverts part of 83da25f0) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5c0b7a18c25ff3b7c5c723a2c905b0e2eb58cfe2;p=dbsrgits%2FDBIx-Class-Historic.git (travis) Re-consolidate sysinfo handling (reverts part of 83da25f0) --- diff --git a/maint/travis-ci_scripts/20_install.bash b/maint/travis-ci_scripts/20_install.bash index 39ec479..23ac294 100755 --- a/maint/travis-ci_scripts/20_install.bash +++ b/maint/travis-ci_scripts/20_install.bash @@ -84,30 +84,3 @@ CPAN_CFG_SCRIPT=" CPAN::Config->commit; " run_or_err "Configuring CPAN.pm" "perl -e '$CPAN_CFG_SCRIPT'" - -echo_err " -===================== PERL CONFIGURATION COMPLETE ===================== - -= CPUinfo -$(perl -0777 -p -e 's/.+\n\n(?!\z)//s' < /proc/cpuinfo) - -= Meminfo -$(free -m -t) - -= Diskinfo -$(sudo df -h) - -$(mount | grep '^/') - -= 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') - -= Processlist -$(sudo ps fuxa) -=============================================================================" diff --git a/maint/travis-ci_scripts/30_before_script.bash b/maint/travis-ci_scripts/30_before_script.bash index c9a483a..4105fea 100755 --- a/maint/travis-ci_scripts/30_before_script.bash +++ b/maint/travis-ci_scripts/30_before_script.bash @@ -236,17 +236,4 @@ echo_err " ===================== DEPENDENCY CONFIGURATION COMPLETE ===================== $(tstamp) Configuration phase seems to have taken $(date -ud "@$SECONDS" '+%H:%M:%S') (@$SECONDS) -= Meminfo -$(free -m -t) - -= Diskinfo -$(sudo df -h) - -$(mount | grep '^/') - -= 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)" diff --git a/maint/travis-ci_scripts/common.bash b/maint/travis-ci_scripts/common.bash index c5bba65..7e3a781 100755 --- a/maint/travis-ci_scripts/common.bash +++ b/maint/travis-ci_scripts/common.bash @@ -14,6 +14,41 @@ fi tstamp() { echo -n "[$(date '+%H:%M:%S')]" ; } +ci_vm_state_text() { + echo " +========================== CI System information ============================ + += CPUinfo +$(perl -0777 -p -e 's/.+\n\n(?!\z)//s' < /proc/cpuinfo) + += Meminfo +$(free -m -t) + += Diskinfo +$(sudo df -h) + +$(mount | grep '^/') + += 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') + += Processlist +$(sudo ps fuxa) + += Environment +$(env | grep -P 'TEST|HARNESS|MAKE|TRAVIS|PERL|DBIC' | LC_ALL=C sort | cat -v) + += Perl in use +$(perl -V) +=============================================================================" +} + run_or_err() { echo_err -n "$(tstamp) $1 ... "