Created
October 7, 2009 22:47
-
-
Save AlexAstroCat/204524 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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