Skip to content

Instantly share code, notes, and snippets.

@NachoMan
Created October 7, 2009 22:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NachoMan/204524 to your computer and use it in GitHub Desktop.
Save NachoMan/204524 to your computer and use it in GitHub Desktop.
set -ex
export OUTPUT=$WORKSPACE/logs
rm -rf $OUTPUT
mkdir -p $OUTPUT
# Pull in prerequisite modules
PERL5LIB=`perl -e 'use Config; my $dir = $Config{sitelib}; $dir =~ s|/usr|$ENV{WORKSPACE}|; print $dir'`
export PERL5LIB
export PERL_TEST_HARNESS_DUMP_TAP=$OUTPUT
export TEST_VERBOSE=1
[ -f Makefile ] && make -k realclean || rm -rf MANIFEST blib $PERL_TEST_HARNESS_DUMP_TAP
perl Makefile.PL PREFIX=$WORKSPACE/install_root
make
for t in $(find t -type f -name '*.t'); do
prove -vbr -MDevel::Cover=-silent,off,-summary,off $t 2>&1 | tee -a $OUTPUT/tests.tap
done
~/bin/tap-to-junit-xml --input=$OUTPUT/tests.tap --output=$OUTPUT/tests.xml
cover
make dist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment