Skip to content

Commit

Permalink
Add travis and coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
kablamo committed Feb 9, 2015
1 parent 9d4264c commit 14fb41f
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 468 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ perl:
- 5.14
- 5.16
- 5.18
before_install:
cpanm -n Devel::Cover::Report::Coveralls
script:
perl Build.PL && ./Build build && cover -test -report coveralls

31 changes: 12 additions & 19 deletions Build.PL
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ use utf8;
use Module::Build;
use File::Basename;
use File::Spec;
use CPAN::Meta;
use CPAN::Meta::Prereqs;

my %args = (
license => 'perl',
Expand Down Expand Up @@ -53,20 +51,15 @@ my $builder = Module::Build->subclass(
)->new(%args);
$builder->create_build_script();

my $mbmeta = CPAN::Meta->load_file('MYMETA.json');
my $meta = CPAN::Meta->load_file('META.json');
my $prereqs_hash = CPAN::Meta::Prereqs->new(
$meta->prereqs
)->with_merged_prereqs(
CPAN::Meta::Prereqs->new($mbmeta->prereqs)
)->as_string_hash;
my $mymeta = CPAN::Meta->new(
{
%{$meta->as_struct},
prereqs => $prereqs_hash
}
);
print "Merging cpanfile prereqs to MYMETA.yml\n";
$mymeta->save('MYMETA.yml', { version => 1.4 });
print "Merging cpanfile prereqs to MYMETA.json\n";
$mymeta->save('MYMETA.json', { version => 2 });
use File::Copy;

print "cp META.json MYMETA.json\n";
copy("META.json","MYMETA.json") or die "Copy failed(META.json): $!";

if (-f 'META.yml') {
print "cp META.yml MYMETA.yml\n";
copy("META.yml","MYMETA.yml") or die "Copy failed(META.yml): $!";
} else {
print "There is no META.yml... You may install this module from the repository...\n";
}

4 changes: 1 addition & 3 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Eric Johnson (kablamo)"
],
"dynamic_config" : 0,
"generated_by" : "Minilla/v1.0.0, CPAN::Meta::Converter version 2.132830",
"generated_by" : "Minilla/v2.2.0, CPAN::Meta::Converter version 2.142060",
"license" : [
"unknown"
],
Expand All @@ -28,8 +28,6 @@
"prereqs" : {
"configure" : {
"requires" : {
"CPAN::Meta" : "0",
"CPAN::Meta::Prereqs" : "0",
"Module::Build" : "0.38"
}
},
Expand Down
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[![Build Status](https://travis-ci.org/kablamo/perl-string-camelsnakekebab.svg?branch=master)](https://travis-ci.org/kablamo/perl-string-camelsnakekebab)
# NAME

String::CamelSnakeKebab - word case conversion
Expand Down Expand Up @@ -27,8 +28,6 @@ String::CamelSnakeKebab - word case conversion
http_header_case "x-ssl-cipher"
# => "X-SSL-Cipher"



# DESCRIPTION

Camel-Snake-Kebab is a Clojure library for word case conversions. This library
Expand All @@ -50,8 +49,6 @@ is ported from the original Clojure.

## http\_header\_case()



# SEE ALSO

The original Camel Snake Kebab Clojure library: [https://github.com/qerub/camel-snake-kebab](https://github.com/qerub/camel-snake-kebab)
Expand Down

0 comments on commit 14fb41f

Please sign in to comment.