Skip to content

Commit

Permalink
Merge pull request #12 from LibreCat/fix_travis_build
Browse files Browse the repository at this point in the history
update travis build; use Module::Build
  • Loading branch information
nicolasfranck authored Jan 17, 2020
2 parents 8ecaea2 + 7ec853f commit 2492c3a
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 19 deletions.
40 changes: 31 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,38 @@
language: perl
perl:
- "5.20"
- "5.18"
- "5.16"
- "5.14"
- "5.12"
matrix:
include:
- perl: "5.28"
dist: xenial
- perl: "5.26"
dist: xenial
- perl: "5.24"
dist: xenial
- perl: "5.22"
dist: xenial
- perl: "5.20"
dist: trusty
- perl: "5.18"
dist: trusty
- perl: "5.16"
dist: trusty
- perl: "5.14"
dist: trusty
- perl: "5.12"
dist: trusty
install:
- cpanm --quiet --notest --force --skip-satisfied .
- cpanm --quiet --notest --skip-satisfied Devel::Cover
- cpanm --local-lib=~/perl5 local::lib
- cpanm --local-lib=~/perl5 --quiet --notest --skip-satisfied Devel::Cover
- cpanm --local-lib=~/perl5 --quiet --notest --skip-satisfied Module::Build
- cpanm --local-lib=~/perl5 --quiet --installdeps --notest --force --skip-satisfied .
script:
- perl Build.PL && cover -test
- export PERL5LIB=$HOME/perl5/lib/perl5
- export PATH=$HOME/perl5/bin:$PATH
- perl Build.PL && ./Build build && cover -test
after_success:
- cpanm --quiet --notest --skip-satisfied Devel::Cover::Report::Coveralls
- cover -report coveralls
env: RELEASE_TESTING=1 AUTOMATED_TESTING=1
sudo: false

#default is "xenial" which does not support perl versions older than 5.22
dist: bionic
55 changes: 51 additions & 4 deletions Build.PL
Original file line number Diff line number Diff line change
@@ -1,7 +1,54 @@
# This Build.PL for Catmandu-Template was generated by Dist::Zilla::Plugin::ModuleBuildTiny 0.015.

# This file was automatically generated by Dist::Zilla::Plugin::ModuleBuild v6.011.
use strict;
use warnings;

use v5.10.1;
use Module::Build::Tiny 0.034;
Build_PL();
use Module::Build 0.28;


my %module_build_args = (
"build_requires" => {
"Module::Build" => "0.28"
},
"configure_requires" => {
"Module::Build" => "0.28"
},
"dist_abstract" => "Catmandu modules for working with templates",
"dist_author" => [
"Nicolas Steenlant, C<< <nicolas.steenlant at ugent.be> >>"
],
"dist_name" => "Catmandu-Template",
"dist_version" => "0.12",
"license" => "perl",
"module_name" => "Catmandu::Template",
"recursive_test_files" => 1,
"requires" => {
"Catmandu" => "0.9301",
"Moo" => "> 1.004",
"Storable" => 0,
"Template" => "2.22",
"perl" => "v5.10.1"
},
"test_requires" => {
"Test::Exception" => "0.32",
"Test::More" => "0.88"
}
);


my %fallback_build_requires = (
"Module::Build" => "0.28",
"Test::Exception" => "0.32",
"Test::More" => "0.88"
);


unless ( eval { Module::Build->VERSION(0.4004) } ) {
delete $module_build_args{test_requires};
$module_build_args{build_requires} = \%fallback_build_requires;
}

my $build = Module::Build->new(%module_build_args);


$build->create_build_script;
6 changes: 3 additions & 3 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This software is copyright (c) 2017 by Nicolas Steenlant, C<< <nicolas.steenlant at ugent.be> >>.
This software is copyright (c) 2020 by Nicolas Steenlant, C<< <nicolas.steenlant at ugent.be> >>.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
Expand All @@ -12,7 +12,7 @@ b) the "Artistic License"

--- The GNU General Public License, Version 1, February 1989 ---

This software is Copyright (c) 2017 by Nicolas Steenlant, C<< <nicolas.steenlant at ugent.be> >>.
This software is Copyright (c) 2020 by Nicolas Steenlant, C<< <nicolas.steenlant at ugent.be> >>.

This is free software, licensed under:

Expand Down Expand Up @@ -272,7 +272,7 @@ That's all there is to it!

--- The Artistic License 1.0 ---

This software is Copyright (c) 2017 by Nicolas Steenlant, C<< <nicolas.steenlant at ugent.be> >>.
This software is Copyright (c) 2020 by Nicolas Steenlant, C<< <nicolas.steenlant at ugent.be> >>.

This is free software, licensed under:

Expand Down
11 changes: 8 additions & 3 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Nicolas Steenlant, C<< <nicolas.steenlant at ugent.be> >>"
],
"dynamic_config" : 0,
"generated_by" : "Dist::Milla version v1.0.17, Dist::Zilla version 6.008, CPAN::Meta::Converter version 2.150005",
"generated_by" : "Dist::Milla version v1.0.17, Dist::Zilla version 6.011, CPAN::Meta::Converter version 2.150001",
"license" : [
"perl_5"
],
Expand All @@ -24,9 +24,14 @@
]
},
"prereqs" : {
"build" : {
"requires" : {
"Module::Build" : "0.28"
}
},
"configure" : {
"requires" : {
"Module::Build::Tiny" : "0.034"
"Module::Build" : "0.28"
}
},
"develop" : {
Expand Down Expand Up @@ -70,6 +75,6 @@
"Patrick Hochstenbach <patrick.hochstenbach@ugent.be>",
"Vitali Peil <vitali.peil@uni-bielefeld.de>"
],
"x_serialization_backend" : "Cpanel::JSON::XS version 3.0233"
"x_serialization_backend" : "Cpanel::JSON::XS version 3.0225"
}

1 change: 1 addition & 0 deletions dist.ini
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
name=Catmandu-Template
[@Milla]
installer = ModuleBuild

0 comments on commit 2492c3a

Please sign in to comment.