Add import-time action stub to OptDeps, switch distbuild checks to it
[dbsrgits/DBIx-Class.git] / maint / travis-ci_scripts / 50_after_success.bash
CommitLineData
b58ecb01 1#!/bin/bash
2
afeb40d2 3# this file is executed in a subshell - set up the common stuff
4source maint/travis-ci_scripts/common.bash
5
6if [[ -n "$SHORT_CIRCUIT_SMOKE" ]] ; then exit 0 ; fi
b58ecb01 7
344f1f52 8if [[ "$CLEANTEST" != "true" ]] ; then
afb8fc52 9 parallel_installdeps_notest $(perl -Ilib -MDBIx::Class::Optional::Dependencies=-list_missing,dist_dir)
344f1f52 10 run_or_err "Attempt to build a dist with all prereqs present" "make dist"
7343c211 11 echo "Contents of the resulting dist tarball:"
12 echo "==========================================="
6a0cbc58 13 tar -vzxf DBIx-Class-*.tar.gz
7343c211 14 echo "==========================================="
6a0cbc58 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"'
344f1f52 17fi