...
 
Commits (4)
stages:
- test
before_script:
- cpanm Module::Build::Tiny Test::Pod Test::Pod::Coverage
- cpanm --installdeps .
- perl Build.PL
- perl Build
unitTestsLatest:
image: perl:latest
stage: test
script:
- cpanm Module::Build::Tiny Test::Pod Test::Pod::Coverage
- cpanm --installdeps .
- perl Build.PL
- perl Build
- REPORT_TEST_ENVIRONMENT=1 perl Build test
unitTestsV5.30:
image: perl:5.30-threaded
stage: test
script:
- REPORT_TEST_ENVIRONMENT=1 perl Build test
unitTestsV5.28:
image: perl:5.28-threaded
stage: test
script:
- REPORT_TEST_ENVIRONMENT=1 perl Build test
unitTestsV5.26:
image: perl:5.26-threaded
stage: test
script:
- REPORT_TEST_ENVIRONMENT=1 perl Build test
unitTestsV5.24:
image: perl:5.24-threaded
stage: test
script:
- REPORT_TEST_ENVIRONMENT=1 perl Build test
unitTestsV5.22:
image: perl:5.22-threaded
stage: test
script:
- REPORT_TEST_ENVIRONMENT=1 perl Build test
unitTestsV5.20:
image: perl:5.20-threaded
stage: test
script:
- REPORT_TEST_ENVIRONMENT=1 perl Build test
unitTestsV5.18:
image: perl:5.18-threaded
stage: test
script:
- REPORT_TEST_ENVIRONMENT=1 perl Build test
unitTestsV5.16:
image: perl:5.16-threaded
stage: test
script:
- REPORT_TEST_ENVIRONMENT=1 perl Build test
unitTestsV5.14:
image: perl:5.14-threaded
stage: test
script:
- REPORT_TEST_ENVIRONMENT=1 perl Build test
unitTestsV5.12:
image: perl:5.12-threaded
stage: test
script:
- REPORT_TEST_ENVIRONMENT=1 perl Build test
unitTestsV5.10:
image: perl:5.10-threaded
stage: test
script:
- REPORT_TEST_ENVIRONMENT=1 perl Build test
unitTestsV5.8:
image: rsrchboy/perlbrew-base:latest
stage: test
script:
- perlbrew init
- source /usr/local/perlbrew/etc/bashrc
- perlbrew install-patchperl
- perlbrew --notest install perl-5.8.5
- perlbrew switch perl-5.8.5
- cpanm Module::Build::Tiny Test::Pod Test::Pod::Coverage List::Util@1.28
- cpanm --installdeps .
- perl Build.PL
- perl Build
image: perl:5.8-threaded
stage: test
script:
- REPORT_TEST_ENVIRONMENT=1 perl Build test
......@@ -2,6 +2,9 @@ Revision history for Perl extension DBD::Mock.
{{$NEXT}}
1.49 2019-09-12T12:59:51Z
- Fixing tests that fail on some old versions of Perl
1.48 2019-09-12T06:34:47Z
- Added execution_history feature to enable tracking of multiple
executes for prepared statements.
......
......@@ -67,7 +67,7 @@
"web" : "https://gitlab.com/scrapheap/DBD-Mock"
}
},
"version" : "1.48",
"version" : "1.49",
"x_authority" : "cpan:JLCOOPER",
"x_contributors" : [
"Chisel <CHISEL@cpan.org>",
......
......@@ -30,7 +30,7 @@ sub import {
if ( @_ && lc( $_[0] ) eq "pool" );
}
our $VERSION = '1.48';
our $VERSION = '1.49';
our $drh = undef; # will hold driver handle
our $err = 0; # will hold any error codes
......
......@@ -5,11 +5,9 @@ use warnings;
use Test::More;
BEGIN {
use_ok('DBD::Mock');
use_ok('DBD::Mock::dr');
use_ok('DBI');
}
use DBD::Mock;
use DBD::Mock::dr;
use DBI;
my ( $dsn, $user, $password, $attributes );
......
......@@ -5,14 +5,12 @@ use warnings;
use Test::More;
BEGIN {
use_ok('DBD::Mock');
use_ok('DBI');
}
use DBD::Mock;
use DBI;
my $dbh = DBI->connect( 'DBI:Mock:', '', '' );
subtest 'SELECTALL_ARRAYREF' => sub {
{
my $rows = [
[ '1', 'european', '42' ],
[ '27', 'african', '2' ],
......@@ -70,6 +68,6 @@ subtest 'SELECTALL_ARRAYREF' => sub {
$results = $dbh->selectall_arrayref( 'SELECT id, type, inventory_id FROM Swallow', { Columns => [2,3] } );
is_deeply( $results, $expectedResults, 'SELECTALL_ARRAYREF ref with Columns defined should return just those columns' );
};
}
done_testing();