Do not auto-install dist-building dependencies in author mode
[dbsrgits/DBIx-Class.git] / maint / travis-ci_scripts / 50_after_success.bash
index e25d702..9ad53b8 100755 (executable)
@@ -3,4 +3,7 @@
 source maint/travis-ci_scripts/common.bash
 if [[ -n "$SHORT_CIRCUIT_SMOKE" ]] ; then return ; fi
 
-[[ "$CLEANTEST" = "true" ]] || run_or_err "Attempt to build a dist with all prereqs present" "make dist"
+if [[ "$CLEANTEST" != "true" ]] ; then
+  parallel_installdeps_notest $(perl -Ilib -MDBIx::Class -e 'print join " ", keys %{DBIx::Class::Optional::Dependencies->req_list_for("dist_dir")}')
+  run_or_err "Attempt to build a dist with all prereqs present" "make dist"
+fi