-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
. lib/tap.bash | ||
|
||
if ! perl -e'require 5.008' 2>/dev/null; then | ||
plan 0 'Perl 5.8 required' | ||
fi | ||
|
||
( | ||
cd t/mb | ||
set -e | ||
set -x | ||
. $PERLBREW_ROOT/etc/bashrc | ||
. $HELPERS_ROOT/init --auto | ||
cpanm --quiet --installdeps --notest . | ||
perl Build.PL && ./Build && ./Build test | ||
) 2>&1 | note | ||
|
||
ok ${PIPESTATUS[0]} 'Module::Build dist with --auto' | ||
|
||
done_testing | ||
|
||
# vim: ft=sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/MANIFEST | ||
/MANIFEST.bak | ||
/MANIFEST.SKIP | ||
/MANIFEST.SKIP.bak | ||
/Build | ||
/_build/ | ||
/META.* | ||
/MYMETA.* | ||
/Makefile | ||
/Makefile.old | ||
/README | ||
/blib/ | ||
/pm_to_blib | ||
*~ | ||
*# | ||
.#* | ||
/Travis-Test-Dist-MB-*/ | ||
/Travis-Test-Dist-MB-*.tar.gz | ||
/cover_db/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use strict; | ||
use warnings; | ||
use Module::Build; | ||
|
||
Module::Build->new( | ||
module_name => 'Travis::Test::Dist::MB', | ||
dist_version => '0.01', | ||
dist_author => 'SOMEONE', | ||
dist_abstract => 'test module', | ||
license => 'perl', | ||
requires => { | ||
'Devel::GlobalPhase' => 0, | ||
}, | ||
)->create_build_script; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
die "This fine shouldn't be used."; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use strict; | ||
use warnings; | ||
use Test::More tests => 1; | ||
|
||
for my $prereq ( | ||
['Devel::GlobalPhase'], | ||
) { | ||
my ($mod, $installed) = @$prereq; | ||
$installed = 1 if ! defined $installed; | ||
(my $file = "$mod.pm") =~ s{::}{/}g; | ||
my $worked = eval { require $file }; | ||
$worked = !$worked if !$installed; | ||
ok $worked, "$mod was " . ($installed ? '' : 'not ') . "installed"; | ||
} |