Skip to content

Commit

Permalink
Merge branch 'hotfix/v2.1.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
keiranmraine committed Apr 25, 2016
2 parents c7c55bd + 79c831b commit 82d28a8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
Binary file modified docs.tar.gz
Binary file not shown.
3 changes: 2 additions & 1 deletion lib/PCAP.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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 =>
Expand Down Expand Up @@ -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 {
Expand Down
17 changes: 14 additions & 3 deletions prerelease.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 82d28a8

Please sign in to comment.