X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=maint%2Ftravis-ci_scripts%2F30_before_script.bash;h=99e081539a1b02978bef5e034db47bccd1048e8b;hb=eed5492fecb339252aaad11adb22651e5bd06d7b;hp=d41ce4ce2e6995c79c3513d0cdc500735765ce13;hpb=5e0e5426b36b5df5f9d1394068cd9f7f1c81087a;p=dbsrgits%2FDBIx-Class.git diff --git a/maint/travis-ci_scripts/30_before_script.bash b/maint/travis-ci_scripts/30_before_script.bash index d41ce4c..99e0815 100755 --- a/maint/travis-ci_scripts/30_before_script.bash +++ b/maint/travis-ci_scripts/30_before_script.bash @@ -3,6 +3,14 @@ source maint/travis-ci_scripts/common.bash if [[ -n "$SHORT_CIRCUIT_SMOKE" ]] ; then return ; fi +# poison the environment - basically look through lib, find all mentioned +# ENVvars and set them to true and see if anything explodes +if [[ "$POISON_ENV" = "true" ]] ; then + for var in $(grep -P '\$ENV\{' -r lib/ | grep -oP 'DBIC_\w+' | sort -u | grep -v DBIC_TRACE) ; do + export $var=1 + done +fi + # try Schwern's latest offering on a stock perl and a threaded blead # can't do this with CLEANTEST=true yet because a lot of our deps fail # tests left and right under T::B 1.5