X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=maint%2Ftravis-ci_scripts%2F10_before_install.bash;h=fa50ffc1897b51b3e7c2c846a20ebc34b81e908b;hb=c86519d7c54ad69e5da97f6c2ccb469d50f49129;hp=7b6d98b47d6f2dd0a848c2d65c5976f9f10cecbc;hpb=a0acdea013d61412a9aef0f567e036902de4de67;p=dbsrgits%2FDBIx-Class.git diff --git a/maint/travis-ci_scripts/10_before_install.bash b/maint/travis-ci_scripts/10_before_install.bash index 7b6d98b..fa50ffc 100755 --- a/maint/travis-ci_scripts/10_before_install.bash +++ b/maint/travis-ci_scripts/10_before_install.bash @@ -3,16 +3,6 @@ source maint/travis-ci_scripts/common.bash if [[ -n "$SHORT_CIRCUIT_SMOKE" ]] ; then return ; fi -# do some extra short-circuiting here - -# when smoking master do not attempt bleadperl (not release-critical) -if [[ "$TRAVIS_BRANCH" = "master" ]] && [[ "$BREWVER" = "blead" ]]; then - echo_err "$(tstamp) master branch is not smoked with bleadperl - bailing out" - export SHORT_CIRCUIT_SMOKE=1 -fi - -if [[ -n "$SHORT_CIRCUIT_SMOKE" ]] ; then return ; fi - # Different boxes we run on may have different amount of hw threads # Hence why we need to query # Originally we used to read /sys/devices/system/cpu/online @@ -23,6 +13,11 @@ if [[ -n "$SHORT_CIRCUIT_SMOKE" ]] ; then return ; fi # `processor : XX` line export NUMTHREADS=$(( $(perl -0777 -n -e 'print (/ (?: .+ ^ processor \s+ : \s+ (\d+) ) (?! ^ processor ) /smx)' < /proc/cpuinfo) + 1 )) +run_or_err "Installing App::Nopaste from APT" "sudo apt-get install --allow-unauthenticated -y libapp-nopaste-perl" +# FIXME - the debian package is oddly broken - uses a bin/env based shebang +# so nothing works under a brew. Fix here until #debian-perl patches it up +sudo /usr/bin/perl -p -i -e 's|#!/usr/bin/env perl|#!/usr/bin/perl|' $(which nopaste) + if [[ "$CLEANTEST" != "true" ]]; then ### apt-get invocation - faster to grab everything at once #