forked from typester/Test-RedisServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.PL
47 lines (38 loc) · 1.12 KB
/
Makefile.PL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
use strict;
use warnings;
BEGIN {
my @devmods = qw(
Module::Install::AuthorTests
Module::Install::ReadmeFromPod
Module::Install::Repository
);
my @not_available;
{
local *STDOUT;
eval qq{use inc::Module::Install; 1;} or push @not_available, 'inc::Module::Install';
}
for my $mod (@devmods) {
eval qq{require $mod} or push @not_available, $mod;
}
if (@not_available) {
print qq{# The following modules are not available.\n};
print qq{# `$^X $0 | cpanm` will install them:\n};
print $_, "\n" for @not_available;
print "\n";
exit -1;
}
}
use inc::Module::Install;
$Module::Install::AUTHOR = 0 if $ENV{TRAVIS};
name 'Test-RedisServer';
all_from 'lib/Test/RedisServer.pm';
test_requires 'Redis' => '1.925'; # unix socket supported version
test_requires 'Test::More' => '0.86';
test_requires 'Test::TCP' => '1.17';
requires 'perl' => '5.008001';
requires 'File::Temp' => '0.19'; # newdir
requires 'Any::Moose' => '0.18';
readme_from 'lib/Test/RedisServer.pm';
author_tests 'xt';
auto_set_repository;
WriteAll;