This repository has been archived by the owner on Oct 3, 2023. It is now read-only.
forked from dreamwidth/dreamwidth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Build.PL
56 lines (48 loc) · 1.47 KB
/
Build.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
48
49
50
51
52
53
54
55
# Build.PL - sets up and generates a test coverage report
#
# Author: szabgab
#
# Copyright (c) 2009 by Dreamwidth Studios, LLC.
#
# This program is free software; you may redistribute it and/or modify it under
# the same terms as Perl itself. For a copy of the license, please reference
# 'perldoc perlartistic' or 'perldoc perlgpl'.
use strict;
use warnings;
use Module::Build;
# Requirements
# See bin/checkconfig.pl
# as explained in:
# http://wiki.dwscoalition.org/notes/Dreamwidth_Scratch_Installation#Make_sure_things_are_working_with_checkconfig.pl
# Setting Up
# Run this script to generate the Build script:
# perl Build.PL
#
# Run the generated file to copy some files and set things up for tests:
# ./Build
# Running
# Run the tests in regular mode with this:
# ./Build test # runs the tests in regular mode; not really needed here
#
# Generate test coverage with this:
# DEVEL_COVER_OPTIONS=-ignore,/usr/local ./Build testcover
#
# or add
# export DEVEL_COVER_OPTIONS=-ignore,/usr/local
# to .bashrc and then you can use
# ./Build testcover
my $builder = Module::Build->new(
module_name => 'DW',
#license => 'gpl',
#dist_author => '',
#dist_version_from => 'lib/Test/Most.pm',
dist_version => '0.01',
# TODO: see above
requires => {
'DBI' => 0,
'perl' => '5.006',
},
#add_to_cleanup => ['DW-*'],
create_makefile_pl => 'none',
);
$builder->create_build_script();