diff --git a/docs.tar.gz b/docs.tar.gz index 947cd90..94f8011 100644 Binary files a/docs.tar.gz and b/docs.tar.gz differ diff --git a/lib/PCAP.pm b/lib/PCAP.pm index c2f06f4..7f3cebe 100644 --- a/lib/PCAP.pm +++ b/lib/PCAP.pm @@ -26,7 +26,7 @@ use base 'Exporter'; use FindBin qw($Bin); use File::Which qw(which); -our $VERSION = '2.1.0'; +our $VERSION = '2.1.2'; our @EXPORT = qw($VERSION _which); const my $LICENSE => @@ -74,6 +74,7 @@ const my %UPGRADE_PATH => ( # all earlier versions need full upgrade '2.0.0' => 'biobambam', '2.0.1' => '', '2.1.0' => '', + '2.1.2' => '', ); sub license { diff --git a/prerelease.sh b/prerelease.sh index 333aadc..105b017 100755 --- a/prerelease.sh +++ b/prerelease.sh @@ -20,15 +20,26 @@ fi # change into the location of the script cd $MY_PATH -echo '### Running perl tests ###' +echo -e '\n### Compile/Test C ###\n' +set +u +if [ "x$HTSLIB" == "x" ]; then + echo -e '\n\t$HTSLIB not defined skipping C compile/test\n' +else + make -C c clean + make -C c + make -C c clean +fi +set -u + +echo -e '\n\n### Running perl tests ###\n' export HARNESS_PERL_SWITCHES=-MDevel::Cover=-db,reports,-select='^lib/*\.pm$',-ignore,'^t/' rm -rf reports docs pm_to_blib blib cover -delete mkdir -p docs/reports_text prove -w -I ./lib -echo -echo '### Generating test/pod coverage reports ###' + +echo -e '\n\n### Generating test/pod coverage reports ###\n' # removed 'condition' from coverage as '||' 'or' doesn't work properly cover -coverage branch,subroutine,pod -report_c0 50 -report_c1 85 -report_c2 100 -report html_basic reports -silent cover -coverage branch,subroutine,pod -report text reports -silent > docs/reports_text/coverage.txt