Skip to content

Commit

Permalink
Refine packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
hirose31 committed Jan 27, 2017
1 parent d21519a commit 65d2eb9
Show file tree
Hide file tree
Showing 9 changed files with 66 additions and 25 deletions.
19 changes: 13 additions & 6 deletions META.json
Expand Up @@ -36,7 +36,11 @@
"Pod::Wordlist" : "0",
"Test::Fixme" : "0",
"Test::Kwalitee" : "0",
"Test::Spelling" : "0.12"
"Test::Kwalitee::Extra" : "0",
"Test::More" : "0.96",
"Test::Pod" : "0",
"Test::Spelling" : "0.12",
"Test::Vars" : "0"
}
},
"runtime" : {
Expand All @@ -51,19 +55,22 @@
"NetPacket::TCP" : "0",
"Pod::Usage" : "0",
"Test::Fixme" : "0",
"Test::More" : "0.88",
"Test::More" : "0.96",
"perl" : "5.008005"
}
},
"test" : {
"requires" : {
"Pod::Wordlist" : "0",
"Test::Kwalitee" : "0",
"Test::More" : "0.88",
"Test::Spelling" : "0.12"
"Test::More" : "0.96"
}
}
},
"provides" : {
"App::redis_traffic_stats" : {
"file" : "lib/App/redis_traffic_stats.pm",
"version" : "1.004"
}
},
"release_status" : "stable",
"resources" : {
"bugtracker" : {
Expand Down
9 changes: 5 additions & 4 deletions cpanfile
Expand Up @@ -24,12 +24,13 @@ on develop => sub {
requires 'Pod::Wordlist';
requires 'Test::Fixme';
requires 'Test::Kwalitee';
requires 'Test::Kwalitee::Extra';
requires 'Test::Spelling', '0.12';
requires 'Test::More', '0.96';
requires 'Test::Pod';
requires 'Test::Vars';
};

on test => sub {
requires 'Test::More', '0.88';
requires 'Pod::Wordlist';
requires 'Test::Kwalitee';
requires 'Test::Spelling', '0.12';
requires 'Test::More', '0.96';
};
2 changes: 2 additions & 0 deletions dist.ini
Expand Up @@ -12,3 +12,5 @@ copyright_year = 2014

[NextRelease]
time_zone = UTC

[MetaProvides::Package]
10 changes: 5 additions & 5 deletions t/author-pod-spell.t
Expand Up @@ -10,9 +10,11 @@ use strict;
use warnings;
use Test::More;

# generated by Dist::Zilla::Plugin::Test::PodSpelling 2.006001
use Test::Spelling 0.12;
use Pod::Wordlist;
eval { require Test::Spelling; Test::Spelling->VERSION(0.12); Test::Spelling->import(); };
plan(skip_all => "Test::Spelling not installed: $@; skipping") if $@;

eval { require Pod::Wordlist; Pod::Wordlist->import(); };
plan(skip_all => "Pod::Wordlist not installed: $@; skipping") if $@;


add_stopwords(<DATA>);
Expand All @@ -22,6 +24,4 @@ HIROSE
Masaaki
hirose31
lib
Foo
Bar
Redis
5 changes: 4 additions & 1 deletion t/release-fixme.t
Expand Up @@ -11,6 +11,9 @@ BEGIN {
# This test is generated by Dist::Zilla::Plugin::Test::Fixme
use strict;
use warnings;
use Test::More;

eval { require Test::Fixme; Test::Fixme->import(); };
plan(skip_all => "Test::Fixme not installed: $@; skipping") if $@;

use Test::Fixme;
run_tests();
16 changes: 16 additions & 0 deletions t/release-kwalitee-extra.t
@@ -0,0 +1,16 @@

BEGIN {
unless ($ENV{RELEASE_TESTING}) {
require Test::More;
Test::More::plan(skip_all => 'these tests are for release candidate testing');
}
}

use strict;
use warnings;
use Test::More;
eval { require Test::Kwalitee::Extra; Test::Kwalitee::Extra->import(qw(:experimental)); };
#eval { require Test::Kwalitee::Extra; Test::Kwalitee::Extra->import(qw(:experimental !prereq_matches_use !build_prereq_matches_use)); };
plan(skip_all => "Test::Kwalitee::Extra not installed: $@; skipping") if $@;

#done_testing;
10 changes: 8 additions & 2 deletions t/release-kwalitee.t
Expand Up @@ -6,7 +6,13 @@ BEGIN {
}
}

# this test was generated with Dist::Zilla::Plugin::Test::Kwalitee 2.07
# this test was generated with Dist::Zilla::Plugin::Test::Kwalitee 2.11
use strict;
use warnings;
use Test::Kwalitee;
use Test::More 0.88;
eval { require Test::Kwalitee; Test::Kwalitee->VERSION(1.21); Test::Kwalitee->import(qw(kwalitee_ok)); };
plan(skip_all => "Test::Kwalitee not installed: $@; skipping") if $@;

kwalitee_ok();

done_testing;
6 changes: 3 additions & 3 deletions t/release-pod-syntax.t
Expand Up @@ -7,9 +7,9 @@ BEGIN {
}
}

# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests.
use Test::More;

eval "use Test::Pod 1.41";
plan skip_all => "Test::Pod 1.41 required for testing POD" if $@;
eval { require Test::Pod; Test::Pod->VERSION(1.41); Test::Pod->import(); };
plan(skip_all => "Test::Pod not installed: $@; skipping") if $@;

all_pod_files_ok();
14 changes: 10 additions & 4 deletions t/release-unused-vars.t
Expand Up @@ -8,9 +8,15 @@ BEGIN {
}


use Test::More;
use Test::More 0.96 tests => 1;
eval { require Test::Vars };

eval "use Test::Vars";
plan skip_all => "Test::Vars required for testing unused vars"
if $@;
SKIP: {
skip 1 => 'Test::Vars required for testing for unused vars'
if $@;
Test::Vars->import;

subtest 'unused vars' => sub {
all_vars_ok();
};
};

0 comments on commit 65d2eb9

Please sign in to comment.