(travis) Reshuffle CI workflow, prepare for better instrumentation of failures
[dbsrgits/DBIx-Class.git] / maint / travis-ci_scripts / 50_after_success.bash
1 #!/bin/bash
2
3 # this file is executed in a subshell - set up the common stuff
4 source maint/travis-ci_scripts/common.bash
5
6 if [[ -n "$SHORT_CIRCUIT_SMOKE" ]] ; then exit 0 ; fi
7
8 if [[ "$CLEANTEST" != "true" ]] ; then
9   parallel_installdeps_notest $(perl -Ilib -MDBIx::Class -e 'print join " ", keys %{DBIx::Class::Optional::Dependencies->req_list_for("dist_dir")}')
10   run_or_err "Attempt to build a dist with all prereqs present" "make dist"
11   echo "Contents of the resulting dist tarball:"
12   echo "==========================================="
13   tar -vzxf DBIx-Class-*.tar.gz
14   echo "==========================================="
15   run_or_err 'Attempt to configure from re-extracted distdir' \
16     'bash -c "cd \$(find DBIx-Class-* -maxdepth 0 -type d | head -n 1) && perl Makefile.PL"'
17 fi