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