Giter Site home page Giter Site logo

dist-zilla-travisci's People

Contributors

getty avatar haarg avatar kentfredric avatar lx avatar mschout avatar pwr22 avatar rwstauner avatar sineswiper avatar ugexe avatar yak1ex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dist-zilla-travisci's Issues

'blead' perl version not working on Travis.

It doesn't look like TravisCI knows what perl version "blead" is anymore. This is using just the defaults.

See https://github.com/exodist/Child/blob/travis/dist.ini

Here's the relevant part of the run.
https://travis-ci.org/exodist/Child/jobs/139363201

blead is not installed; attempting download

bzip2: (stdin) is not a bzip2 file.

tar: Child returned status 2

tar: Error is not recoverable: exiting now
git.checkout

0.36s$ git clone --depth=50 --branch=travis https://github.com/exodist/Child.git exodist/Child

Cloning into 'exodist/Child'...

remote: Counting objects: 378, done.

remote: Compressing objects: 100% (5/5), done.

remote: Total 378 (delta 2), reused 1 (delta 1), pack-reused 372

Receiving objects: 100% (378/378), 68.20 KiB | 0 bytes/s, done.

Resolving deltas: 100% (178/178), done.

Checking connectivity... done.

$ cd exodist/Child

$ git checkout -qf a2ab96a39510989a0e636a2358e9aaa39cce4f38

This job is running on container-based infrastructure, which does not allow use of 'sudo', setuid and setguid executables.

If you require sudo, add 'sudo: required' to your .travis.yml

See https://docs.travis-ci.com/user/workers/container-based-infrastructure/ for details.

0.04s$ perlbrew use blead

ERROR: The installation "blead" is unknown.

should not test unsupported Perl versions by default

My distribution has a minimum Perl version of 5.10, but this plugin still adds all of the Perl versions starting from 5.8. A 5.8 failure is an allowed fail, so the build is still green, but if I had a minimum Perl version of 5.14 then I would have to manually put in the version numbers. Yes, I'm that lazy. After adding the MinimumPerl plugin, I just don't want to worry about it.

The declared minimum Perl version can be retrieved via the prereqs method, which will have a perl entry if a minimum version is known. The stickier problem would probably be comparing version numbers... Perhaps the version module?

is 1.15 missing @common before_install section ?

Hey,

Just upgraded to 1.15 and I'm noticing that haarg's travis-ci perl helpers aren't getting put into the before_install section of my .travis.yml. Am I doing something wrong ?

dist.ini section:

[TravisYML]
build_branch = cpan
perl_version = 5.20 5.18 5.16 5.14 5.12 5.10
test_authordeps = 0
test_deps = 0

I ran the following bash commands:

cpanm --reinstall Dist::Zilla::Plugin::TravisYML
dzil new TestThing
cd TestThing/
dzil build
cat .travis.yml

and got the following travis yaml file:

sudo: false
language: perl
perl:
   - '5.20'
   - '5.18'
   - '5.16'
   - '5.14'
   - '5.12'
   - '5.10'
matrix:
   fast_finish: true
before_install:
   - git config --global user.name "TravisCI"
   - git config --global user.email $HOSTNAME":[email protected]"
install:
   - cpanm --quiet --notest --skip-satisfied Dist::Zilla
   - "dzil authordeps          --missing | grep -vP '[^\\w:]' | xargs -n 5 -P 10 cpanm --quiet --notest"
   - "dzil listdeps   --author --missing | grep -vP '[^\\w:]' | xargs -n 5 -P 10 cpanm --quiet --notest"
script:
   - dzil smoke --release --author

(transcript with bash output: https://gist.github.com/gempesaw/4d7680b2d2a83dd152fb )

thanks! :D

D::Z::Plugin::TravisYML 0.91 fails to install

Hi,

your Dist::Zilla::App::CommandHelper::ChainSmoking module composes the Dist::Zilla::Role::Git::DirtyFiles role, but this role now requires a repo_root method.

$ cpanm -v Dist::Zilla::Plugin::TravisYML
cpanm (App::cpanminus) 1.5017 on perl 5.014002 built for darwin-2level
Work directory is /Users/melo/.cpanm/work/1346802169.62957
You have make /usr/bin/make
You have LWP 6.04
You have /usr/bin/tar: bsdtar 2.8.3 - libarchive 2.8.3
You have /usr/bin/unzip
Searching Dist::Zilla::Plugin::TravisYML on mirror file:///Users/melo/perl5/cpan ...
Downloading index file file:///Users/melo/perl5/cpan/modules/02packages.details.txt.gz ...
--> Working on Dist::Zilla::Plugin::TravisYML
Fetching file:///Users/melo/perl5/cpan/authors/id/B/BB/BBYRD/Dist-Zilla-TravisCI-0.91.tar.gz ... OK
Unpacking Dist-Zilla-TravisCI-0.91.tar.gz
x Dist-Zilla-TravisCI-0.91
x Dist-Zilla-TravisCI-0.91/CHANGES
x Dist-Zilla-TravisCI-0.91/LICENSE
x Dist-Zilla-TravisCI-0.91/INSTALL
x Dist-Zilla-TravisCI-0.91/dist.ini
x Dist-Zilla-TravisCI-0.91/MANIFEST
x Dist-Zilla-TravisCI-0.91/META.yml
x Dist-Zilla-TravisCI-0.91/META.json
x Dist-Zilla-TravisCI-0.91/README.pod
x Dist-Zilla-TravisCI-0.91/weaver.ini
x Dist-Zilla-TravisCI-0.91/t
x Dist-Zilla-TravisCI-0.91/t/00-load.t
x Dist-Zilla-TravisCI-0.91/Makefile.PL
x Dist-Zilla-TravisCI-0.91/README.html
x Dist-Zilla-TravisCI-0.91/t/00-compile.t
x Dist-Zilla-TravisCI-0.91/t/00-check-deps.t
x Dist-Zilla-TravisCI-0.91/xt/release
x Dist-Zilla-TravisCI-0.91/xt/release/no-tabs.t
x Dist-Zilla-TravisCI-0.91/xt/author
x Dist-Zilla-TravisCI-0.91/xt/author/test-eol.t
x Dist-Zilla-TravisCI-0.91/xt/release/meta-json.t
x Dist-Zilla-TravisCI-0.91/xt/release/pod-syntax.t
x Dist-Zilla-TravisCI-0.91/xt/release/portability.t
x Dist-Zilla-TravisCI-0.91/xt/release/test-version.t
x Dist-Zilla-TravisCI-0.91/xt/release/dist-manifest.t
x Dist-Zilla-TravisCI-0.91/lib/Dist/Zilla
x Dist-Zilla-TravisCI-0.91/lib/Dist/Zilla/TravisCI.pod
x Dist-Zilla-TravisCI-0.91/xt/release/check-manifest.t
x Dist-Zilla-TravisCI-0.91/xt/release/minimum-version.t
x Dist-Zilla-TravisCI-0.91/t/000-report-versions-tiny.t
x Dist-Zilla-TravisCI-0.91/lib/Dist/Zilla/Role
x Dist-Zilla-TravisCI-0.91/lib/Dist/Zilla/Role/TravisYML.pm
x Dist-Zilla-TravisCI-0.91/lib/Dist/Zilla/TravisCI
x Dist-Zilla-TravisCI-0.91/lib/Dist/Zilla/TravisCI/MVDT.pod
x Dist-Zilla-TravisCI-0.91/lib/Dist/Zilla/Plugin
x Dist-Zilla-TravisCI-0.91/lib/Dist/Zilla/Plugin/TravisYML.pm
x Dist-Zilla-TravisCI-0.91/lib/Dist/Zilla/App/Command
x Dist-Zilla-TravisCI-0.91/lib/Dist/Zilla/App/Command/chainsmoke.pm
x Dist-Zilla-TravisCI-0.91/lib/Dist/Zilla/App/CommandHelper
x Dist-Zilla-TravisCI-0.91/lib/Dist/Zilla/App/CommandHelper/ChainSmoking.pm
Entering Dist-Zilla-TravisCI-0.91
Checking configure dependencies from META.yml
Configuring Dist-Zilla-TravisCI-0.91 ... Running Makefile.PL
Unparsable version 'v0.1.1' for prerequisite Dist::Zilla::Role::Git::Remote::Update at Makefile.PL line 65.
Unparsable version 'v0.1.1' for prerequisite Dist::Zilla::Role::Git::Remote::Branch at Makefile.PL line 65.
Unparsable version 'v0.1.1' for prerequisite Dist::Zilla::Role::Git::Remote at Makefile.PL line 65.
Unparsable version 'v0.1.1' for prerequisite Dist::Zilla::Role::Git::LocalRepository at Makefile.PL line 65.
Unparsable version 'v0.1.1' for prerequisite Dist::Zilla::Role::Git::Remote::Check at Makefile.PL line 65.
Checking if your kit is complete...
Looks good
Writing Makefile for Dist::Zilla::TravisCI
Writing MYMETA.yml and MYMETA.json
OK
Checking dependencies from MYMETA.json ...
Checking if you have Test::UseAllModules 0.10 ... Yes (0.14)
Checking if you have Test::CheckDeps 0.002 ... Yes (0.002)
Checking if you have MooseX::Types::Moose 0 ... Yes (0.35)
Checking if you have MooseX::Has::Sugar 0.0100 ... Yes (0.05070421)
Checking if you have Dist::Zilla::Role::Git::Remote::Update 0 ... Yes (0.1.2)
Checking if you have Dist::Zilla::Plugin::Git::Check 1.093250 ... Yes (1.122460)
Checking if you have Dist::Zilla::Role::Git::Remote::Branch 0 ... Yes (0.1.2)
Checking if you have Dist::Zilla::Role::Git::Remote 0 ... Yes (0.1.2)
Checking if you have Dist::Zilla::Role::Git::LocalRepository 0 ... Yes (0.1.2)
Checking if you have Dist::Zilla::Role::MetaCPANInterfacer 0.90 ... Yes (0.93)
Checking if you have Moose 0.34 ... Yes (2.0603)
Checking if you have File::Slurp 9999.14 ... Yes (9999.19)
Checking if you have Dist::Zilla::Role::Git::Remote::Check 0 ... Yes (0.1.2)
Checking if you have List::AllUtils 0.01 ... Yes (0.03)
Checking if you have Moose::Autobox 0.09 ... Yes (0.13)
Checking if you have sanity 0.91 ... Yes (0.93)
Checking if you have Dist::Zilla::Role::Git::DirtyFiles 1.100740 ... Yes (1.122460)
Checking if you have Dist::Zilla 1.093220 ... Yes (4.300021)
Checking if you have Acme::Indent 0.01 ... Yes (0.01)
Building and testing Dist-Zilla-TravisCI-0.91 ... cp README.pod blib/lib/Dist/Zilla/README.pod
cp lib/Dist/Zilla/App/CommandHelper/ChainSmoking.pm blib/lib/Dist/Zilla/App/CommandHelper/ChainSmoking.pm
cp lib/Dist/Zilla/Role/TravisYML.pm blib/lib/Dist/Zilla/Role/TravisYML.pm
cp lib/Dist/Zilla/TravisCI/MVDT.pod blib/lib/Dist/Zilla/TravisCI/MVDT.pod
cp lib/Dist/Zilla/App/Command/chainsmoke.pm blib/lib/Dist/Zilla/App/Command/chainsmoke.pm
cp lib/Dist/Zilla/Plugin/TravisYML.pm blib/lib/Dist/Zilla/Plugin/TravisYML.pm
cp lib/Dist/Zilla/TravisCI.pod blib/lib/Dist/Zilla/TravisCI.pod
Manifying blib/man3/Dist::Zilla::README.3
Manifying blib/man3/Dist::Zilla::Role::TravisYML.3
Manifying blib/man3/Dist::Zilla::App::CommandHelper::ChainSmoking.3
Manifying blib/man3/Dist::Zilla::TravisCI::MVDT.3
Manifying blib/man3/Dist::Zilla::Plugin::TravisYML.3
Manifying blib/man3/Dist::Zilla::App::Command::chainsmoke.3
Manifying blib/man3/Dist::Zilla::TravisCI.3
PERL_DL_NONLAZY=1 /Users/melo/perl5/perlbrew/perls/perl-5.14.2/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-check-deps.t ............. ok    
t/00-compile.t ................ 'Dist::Zilla::Role::Git::DirtyFiles' requires the method 'repo_root' to be implemented by 'Dist::Zilla::App::CommandHelper::ChainSmoking' at /Users/melo/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/darwin-2level/Moose/Meta/Role/Application/ToClass.pm line 134.
    Moose::Meta::Role::Application::ToClass::check_required_methods('Moose::Meta::Role::Application::ToClass=HASH(0x100e64508)', 'Moose::Meta::Role=HASH(0x101b3b6d8)', 'Moose::Meta::Class=HASH(0x100e626c0)') called at /Users/melo/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/darwin-2level/Moose/Meta/Role/Application.pm line 55
    Moose::Meta::Role::Application::apply('Moose::Meta::Role::Application::ToClass=HASH(0x100e64508)', 'Moose::Meta::Role=HASH(0x101b3b6d8)', 'Moose::Meta::Class=HASH(0x100e626c0)') called at /Users/melo/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/darwin-2level/Moose/Meta/Role/Application/ToClass.pm line 36
    Moose::Meta::Role::Application::ToClass::apply('Moose::Meta::Role::Application::ToClass=HASH(0x100e64508)', 'Moose::Meta::Role=HASH(0x101b3b6d8)', 'Moose::Meta::Class=HASH(0x100e626c0)', 'HASH(0x101b38e40)') called at /Users/melo/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/darwin-2level/Moose/Meta/Role.pm line 470
    Moose::Meta::Role::apply('Moose::Meta::Role=HASH(0x101b3b6d8)', 'Moose::Meta::Class=HASH(0x100e626c0)') called at /Users/melo/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/darwin-2level/Moose/Util.pm line 160
    Moose::Util::_apply_all_roles('Moose::Meta::Class=HASH(0x100e626c0)', undef, 'Dist::Zilla::Role::Git::DirtyFiles') called at /Users/melo/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/darwin-2level/Moose/Util.pm line 99
    Moose::Util::apply_all_roles('Moose::Meta::Class=HASH(0x100e626c0)', 'Dist::Zilla::Role::Git::DirtyFiles') called at /Users/melo/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/darwin-2level/Moose.pm line 67
    Moose::with('Moose::Meta::Class=HASH(0x100e626c0)', 'Dist::Zilla::Role::Git::DirtyFiles') called at /Users/melo/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/darwin-2level/Moose/Exporter.pm line 382
    Moose::with('Dist::Zilla::Role::Git::DirtyFiles') called at lib/Dist/Zilla/App/CommandHelper/ChainSmoking.pm line 34
    require Dist/Zilla/App/CommandHelper/ChainSmoking.pm called at lib/Dist/Zilla/App/Command/chainsmoke.pm line 9
    Dist::Zilla::App::Command::chainsmoke::BEGIN() called at lib/Dist/Zilla/App/CommandHelper/ChainSmoking.pm line 0
    eval {...} called at lib/Dist/Zilla/App/CommandHelper/ChainSmoking.pm line 0
    require Dist/Zilla/App/Command/chainsmoke.pm called at -e line 1
Compilation failed in require at lib/Dist/Zilla/App/Command/chainsmoke.pm line 9.
BEGIN failed--compilation aborted at lib/Dist/Zilla/App/Command/chainsmoke.pm line 9.
Compilation failed in require at -e line 1.
t/00-compile.t ................ 1/4 
#   Failed test 'Dist::Zilla::App::Command::chainsmoke loaded ok'
#   at t/00-compile.t line 62.
#                   ''
#     doesn't match '(?^s:^\s*Dist::Zilla::App::Command::chainsmoke ok)'
'Dist::Zilla::Role::Git::DirtyFiles' requires the method 'repo_root' to be implemented by 'Dist::Zilla::App::CommandHelper::ChainSmoking' at /Users/melo/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/darwin-2level/Moose/Meta/Role/Application/ToClass.pm line 134.
    Moose::Meta::Role::Application::ToClass::check_required_methods('Moose::Meta::Role::Application::ToClass=HASH(0x101ac91f8)', 'Moose::Meta::Role=HASH(0x101ac70f0)', 'Moose::Meta::Class=HASH(0x100982198)') called at /Users/melo/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/darwin-2level/Moose/Meta/Role/Application.pm line 55
    Moose::Meta::Role::Application::apply('Moose::Meta::Role::Application::ToClass=HASH(0x101ac91f8)', 'Moose::Meta::Role=HASH(0x101ac70f0)', 'Moose::Meta::Class=HASH(0x100982198)') called at /Users/melo/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/darwin-2level/Moose/Meta/Role/Application/ToClass.pm line 36
    Moose::Meta::Role::Application::ToClass::apply('Moose::Meta::Role::Application::ToClass=HASH(0x101ac91f8)', 'Moose::Meta::Role=HASH(0x101ac70f0)', 'Moose::Meta::Class=HASH(0x100982198)', 'HASH(0x101ac4858)') called at /Users/melo/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/darwin-2level/Moose/Meta/Role.pm line 470
    Moose::Meta::Role::apply('Moose::Meta::Role=HASH(0x101ac70f0)', 'Moose::Meta::Class=HASH(0x100982198)') called at /Users/melo/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/darwin-2level/Moose/Util.pm line 160
    Moose::Util::_apply_all_roles('Moose::Meta::Class=HASH(0x100982198)', undef, 'Dist::Zilla::Role::Git::DirtyFiles') called at /Users/melo/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/darwin-2level/Moose/Util.pm line 99
    Moose::Util::apply_all_roles('Moose::Meta::Class=HASH(0x100982198)', 'Dist::Zilla::Role::Git::DirtyFiles') called at /Users/melo/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/darwin-2level/Moose.pm line 67
    Moose::with('Moose::Meta::Class=HASH(0x100982198)', 'Dist::Zilla::Role::Git::DirtyFiles') called at /Users/melo/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/darwin-2level/Moose/Exporter.pm line 382
    Moose::with('Dist::Zilla::Role::Git::DirtyFiles') called at lib/Dist/Zilla/App/CommandHelper/ChainSmoking.pm line 34
    require Dist/Zilla/App/CommandHelper/ChainSmoking.pm called at -e line 1
Compilation failed in require at -e line 1.
t/00-compile.t ................ 2/4 
#   Failed test 'Dist::Zilla::App::CommandHelper::ChainSmoking loaded ok'
#   at t/00-compile.t line 62.
#                   ''
#     doesn't match '(?^s:^\s*Dist::Zilla::App::CommandHelper::ChainSmoking ok)'
t/00-compile.t ................ 4/4 # Looks like you failed 2 tests of 4.
t/00-compile.t ................ Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/4 subtests 
t/00-load.t ................... 2/4 
#   Failed test 'use Dist::Zilla::App::CommandHelper::ChainSmoking;'
#   at /Users/melo/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/Test/UseAllModules.pm line 77.
#     Tried to use 'Dist::Zilla::App::CommandHelper::ChainSmoking'.
#     Error:  'Dist::Zilla::Role::Git::DirtyFiles' requires the method 'repo_root' to be implemented by 'Dist::Zilla::App::CommandHelper::ChainSmoking' at /Users/melo/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/darwin-2level/Moose/Meta/Role/Application/ToClass.pm line 134.
#   Moose::Meta::Role::Application::ToClass::check_required_methods('Moose::Meta::Role::Application::ToClass=HASH(0x101b2eb10)', 'Moose::Meta::Role=HASH(0x101b2ca08)', 'Moose::Meta::Class=HASH(0x101848060)') called at /Users/melo/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/darwin-2level/Moose/Meta/Role/Application.pm line 55
#   Moose::Meta::Role::Application::apply('Moose::Meta::Role::Application::ToClass=HASH(0x101b2eb10)', 'Moose::Meta::Role=HASH(0x101b2ca08)', 'Moose::Meta::Class=HASH(0x101848060)') called at /Users/melo/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/darwin-2level/Moose/Meta/Role/Application/ToClass.pm line 36
#   Moose::Meta::Role::Application::ToClass::apply('Moose::Meta::Role::Application::ToClass=HASH(0x101b2eb10)', 'Moose::Meta::Role=HASH(0x101b2ca08)', 'Moose::Meta::Class=HASH(0x101848060)', 'HASH(0x101b2a198)') called at /Users/melo/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/darwin-2level/Moose/Meta/Role.pm line 470
#   Moose::Meta::Role::apply('Moose::Meta::Role=HASH(0x101b2ca08)', 'Moose::Meta::Class=HASH(0x101848060)') called at /Users/melo/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/darwin-2level/Moose/Util.pm line 160
#   Moose::Util::_apply_all_roles('Moose::Meta::Class=HASH(0x101848060)', undef, 'Dist::Zilla::Role::Git::DirtyFiles') called at /Users/melo/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/darwin-2level/Moose/Util.pm line 99
#   Moose::Util::apply_all_roles('Moose::Meta::Class=HASH(0x101848060)', 'Dist::Zilla::Role::Git::DirtyFiles') called at /Users/melo/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/darwin-2level/Moose.pm line 67
#   Moose::with('Moose::Meta::Class=HASH(0x101848060)', 'Dist::Zilla::Role::Git::DirtyFiles') called at /Users/melo/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/darwin-2level/Moose/Exporter.pm line 382
#   Moose::with('Dist::Zilla::Role::Git::DirtyFiles') called at lib/Dist/Zilla/App/CommandHelper/ChainSmoking.pm line 34
#   require Dist/Zilla/App/CommandHelper/ChainSmoking.pm called at (eval 375) line 2
#   Test::UseAllModules::BEGIN() called at lib/Dist/Zilla/App/CommandHelper/ChainSmoking.pm line 0
#   eval {...} called at lib/Dist/Zilla/App/CommandHelper/ChainSmoking.pm line 0
#   eval 'package Test::UseAllModules;
# use Dist::Zilla::App::CommandHelper::ChainSmoking @{$args[0]};
#1;
# 
# ;' called at /Users/melo/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/Test/More.pm line 885
#   Test::More::_eval('package Test::UseAllModules;\x{a}use Dist::Zilla::App::CommandHel...', 'ARRAY(0x1008a1d60)') called at /Users/melo/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/Test/More.pm line 860
#   Test::More::use_ok('Dist::Zilla::App::CommandHelper::ChainSmoking') called at /Users/melo/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/Test/UseAllModules.pm line 77
#   Test::UseAllModules::all_uses_ok() called at t/00-load.t line 4
#   main::BEGIN() called at lib/Dist/Zilla/App/CommandHelper/ChainSmoking.pm line 0
#   eval {...} called at lib/Dist/Zilla/App/CommandHelper/ChainSmoking.pm line 0
# Compilation failed in require at (eval 375) line 2.
# BEGIN failed--compilation aborted at (eval 375) line 2.

#   Failed test 'use Dist::Zilla::App::Command::chainsmoke;'
#   at /Users/melo/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/Test/UseAllModules.pm line 77.
#     Tried to use 'Dist::Zilla::App::Command::chainsmoke'.
#     Error:  Attempt to reload Dist/Zilla/App/CommandHelper/ChainSmoking.pm aborted.
# Compilation failed in require at lib/Dist/Zilla/App/Command/chainsmoke.pm line 9.
# BEGIN failed--compilation aborted at lib/Dist/Zilla/App/Command/chainsmoke.pm line 9.
# Compilation failed in require at (eval 475) line 2.
# BEGIN failed--compilation aborted at (eval 475) line 2.
Bailout called.  Further testing stopped:  failed: Dist::Zilla::App::CommandHelper::ChainSmoking,Dist::Zilla::App::Command::chainsmoke
FAILED--Further testing stopped: failed: Dist::Zilla::App::CommandHelper::ChainSmoking,Dist::Zilla::App::Command::chainsmoke
make: *** [test_dynamic] Error 255
FAIL
! Installing Dist::Zilla::Plugin::TravisYML failed. See /Users/melo/.cpanm/build.log for details.

Please, please, please, remove `use sanity` from App::Command::chainsmoke

sanity doesn't really do CPAN users any favours here. It loads a lot of stuff that while (debateably) useful for developers, having it in your module is a sizeable blight on every dzil install that has it with zero benefit for the user.

I mentioned this in pull #24 but I was obviously not loud enough.

Because every command is loaded on every command, every useless dependency you put in there makes every command suffer.

For instance, having chainsmoke installed presently for means I have a minimum time of 0.6 seconds to run dzil version.

Simply commenting out use sanity in chainsmoke.pm reduces my dzil version time to 0.1 seconds, removes 20 modules from startup, and removes 23 files from the total IO's required.

Improve documentation

Thanks for this module! It's easy and the documentation could be much worse. The second step, however, requires some clarification:

  1. Sign into Travis CI with your GitHub account.
  2. Flip a bit on your distro.
  3. Put the TravisYML plugin in your dist.ini.

What "bit" are you talking about?

[Travis::TestRelease] blows up

[TestRelease] all's well; removing .build/0skq6DAmBb
[Travis::TestRelease] Stashing any files and switching to 'release_testing/master' branch...
[Travis::TestRelease] Caught an error; backing out...
fatal: ambiguous argument 'stash@{0}': unknown revision or path not in the working tree.

Weird travis error: dump_config was not found in the inheritance hierarchy for ...::ChainSmoking

Hey,

Any chance you've also seen this error coming up in your Dist::Zilla dependent projects? When I dzil smoke --release --author locally there's no issues, but I can't get any of my TravisCI runs to pass :(

I even went back and repeated a previously passing test on an old commit and it failed in the same way. Perhaps it's due to outdated moose dependencies? but the error messages aren't an exact match.

The method 'dump_config' was not found in the inheritance hierarchy for Dist::Zilla::App::CommandHelper::ChainSmoking at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/x86_64-linux/Moose/Exception.pm line 37
    Moose::Exception::_build_trace('Moose::Exception::MethodNameNotFoundInInheritanceHierarchy=HASH(0x35fa2e0)') called at reader Moose::Exception::trace (defined at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/x86_64-linux/Moose/Exception.pm line 9) line 8
    Moose::Exception::trace('Moose::Exception::MethodNameNotFoundInInheritanceHierarchy=HASH(0x35fa2e0)') called at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/x86_64-linux/Moose/Exception.pm line 49
    Moose::Exception::BUILD('Moose::Exception::MethodNameNotFoundInInheritanceHierarchy=HASH(0x35fa2e0)', 'HASH(0x35fad40)') called at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/x86_64-linux/Class/MOP/Method.pm line 128
    Class::MOP::Method::execute('Moose::Meta::Method=HASH(0x3609fb0)', 'Moose::Exception::MethodNameNotFoundInInheritanceHierarchy=HASH(0x35fa2e0)', 'HASH(0x35fad40)') called at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/x86_64-linux/Moose/Object.pm line 56
    Moose::Object::BUILDALL('Moose::Exception::MethodNameNotFoundInInheritanceHierarchy=HASH(0x35fa2e0)', 'HASH(0x35fad40)') called at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/x86_64-linux/Moose/Meta/Class.pm line 282
    Moose::Meta::Class::new_object('Moose::Meta::Class=HASH(0x35fc410)', 'HASH(0x35fad40)') called at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/x86_64-linux/Moose/Object.pm line 27
    Moose::Object::new('Moose::Exception::MethodNameNotFoundInInheritanceHierarchy', 'class', 'Moose::Meta::Class=HASH(0x3172320)', 'method_name', 'dump_config') called at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/x86_64-linux/Moose/Util.pm line 51
    Moose::Util::throw_exception('MethodNameNotFoundInInheritanceHierarchy', 'class', 'Moose::Meta::Class=HASH(0x3172320)', 'method_name', 'dump_config') called at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/x86_64-linux/Class/MOP/Class.pm line 1062
    Class::MOP::Class::__ANON__('Moose::Meta::Class=HASH(0x3172320)', 'dump_config') called at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/x86_64-linux/Class/MOP/Class.pm line 1109
    Class::MOP::Class::add_around_method_modifier('Moose::Meta::Class=HASH(0x3172320)', 'dump_config', 'CODE(0x357c4b0)') called at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/x86_64-linux/Moose/Meta/Role/Application/ToClass.pm line 211
    Moose::Meta::Role::Application::ToClass::apply_method_modifiers('Moose::Meta::Role::Application::ToClass=HASH(0x35f9ad0)', 'around', 'Moose::Meta::Role=HASH(0x358e068)', 'Moose::Meta::Class=HASH(0x3172320)') called at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/x86_64-linux/Moose/Meta/Role/Application.pm line 77
    Moose::Meta::Role::Application::apply_around_method_modifiers('Moose::Meta::Role::Application::ToClass=HASH(0x35f9ad0)', 'Moose::Meta::Role=HASH(0x358e068)', 'Moose::Meta::Class=HASH(0x3172320)') called at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/x86_64-linux/Moose/Meta/Role/Application.pm line 63
    Moose::Meta::Role::Application::apply('Moose::Meta::Role::Application::ToClass=HASH(0x35f9ad0)', 'Moose::Meta::Role=HASH(0x358e068)', 'Moose::Meta::Class=HASH(0x3172320)') called at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/x86_64-linux/Moose/Meta/Role/Application/ToClass.pm line 35
    Moose::Meta::Role::Application::ToClass::apply('Moose::Meta::Role::Application::ToClass=HASH(0x35f9ad0)', 'Moose::Meta::Role=HASH(0x358e068)', 'Moose::Meta::Class=HASH(0x3172320)', 'HASH(0x35be6d0)') called at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/x86_64-linux/Moose/Meta/Role.pm line 474
    Moose::Meta::Role::apply('Moose::Meta::Role=HASH(0x358e068)', 'Moose::Meta::Class=HASH(0x3172320)') called at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/x86_64-linux/Moose/Util.pm line 166
    Moose::Util::_apply_all_roles('Moose::Meta::Class=HASH(0x3172320)', undef, 'Dist::Zilla::Role::Git::Repo') called at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/x86_64-linux/Moose/Util.pm line 108
    Moose::Util::apply_all_roles('Moose::Meta::Class=HASH(0x3172320)', 'Dist::Zilla::Role::Git::Repo') called at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/x86_64-linux/Moose.pm line 60
    Moose::with('Moose::Meta::Class=HASH(0x3172320)', 'Dist::Zilla::Role::Git::Repo') called at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/x86_64-linux/Moose/Exporter.pm line 405
    Moose::with('Dist::Zilla::Role::Git::Repo') called at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/Dist/Zilla/App/CommandHelper/ChainSmoking.pm line 34
    require Dist/Zilla/App/CommandHelper/ChainSmoking.pm at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/Dist/Zilla/App/Command/chainsmoke.pm line 9
    Dist::Zilla::App::Command::chainsmoke::BEGIN at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/Dist/Zilla/App/CommandHelper/ChainSmoking.pm line 0
    eval {...} at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/Dist/Zilla/App/CommandHelper/ChainSmoking.pm line 0
    require Dist/Zilla/App/Command/chainsmoke.pm at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/Module/Runtime.pm line 317
    Module::Runtime::require_module('Dist::Zilla::App::Command::chainsmoke') called at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/Class/Load.pm line 179
    Class::Load::try {...}  at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/Try/Tiny.pm line 77
    eval {...} at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/Try/Tiny.pm line 72
    Try::Tiny::try('CODE(0x2957c30)', 'Try::Tiny::Catch=REF(0x1d15078)') called at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/Class/Load.pm line 185
    Class::Load::try_load_class('Dist::Zilla::App::Command::chainsmoke', undef) called at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/Class/Load.pm line 40
    Class::Load::load_class('Dist::Zilla::App::Command::chainsmoke') called at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/App/Cmd.pm line 98
    App::Cmd::_command('Dist::Zilla::App', undef) called at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/App/Cmd.pm line 72
    App::Cmd::new('Dist::Zilla::App') called at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/App/Cmd.pm line 203
    App::Cmd::run('Dist::Zilla::App') called at /home/travis/perl5/perlbrew/perls/5.19/bin/dzil line 15
Compilation failed in require at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/Dist/Zilla/App/Command/chainsmoke.pm line 9.
BEGIN failed--compilation aborted at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/Dist/Zilla/App/Command/chainsmoke.pm line 9.
Compilation failed in require at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/App/Cmd.pm line 98.
    App::Cmd::_command("Dist::Zilla::App", undef) called at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/App/Cmd.pm line 72
    App::Cmd::new("Dist::Zilla::App") called at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.6/App/Cmd.pm line 203
    App::Cmd::run("Dist::Zilla::App") called at /home/travis/perl5/perlbrew/perls/5.19/bin/dzil line 15

The command "dzil smoke --release --author" exited with 255.

Done. Your build exited with 1.

can't install plugin

t/01-basic.t ........... Null filename used at /home/papa/.perlbrew/libs/perl-5.20.2@dev/lib/perl5/sanity.pm line 512.

Travis failing to build a dist::zilla distribution with Perl 5.8

When TravisCI tries to run the "install" phase it fails with the folllowing:

Successfully installed MooseX-AttributeShortcuts-0.019
! Installing the dependencies failed: Installed version (5.008009) of perl is not in range '5.010'
! Bailing out the installation for Dist-Zilla-Plugin-Git-2.014.
8 distributions installed
! Configure failed for Dist-Zilla-TravisCI-1.03. See /home/travis/.cpanm/work/1372186011.894/build.log for details.
You have Dist::Zilla::Plugin::UploadToCPAN (4.300034)
5 distributions installed

--skip-satisfied does not satisfy deps

my plugin MooseX::Types::Locale::Currency relies on Locale::Codes v3, this is a, dual life, core distribution. below 5.16 ships v2, when using --skip-satisfied v3 is not pulled in and thus tests break. Please remove this option

generated .travis.yml downgrades dependencies installed by other dependencies

(Travis CI build log for reference.)

In my case, dzil chainsmoke --mvdt is adding an install instruction for:

cpanm --verbose PHAYLON/MooseX-Types-0.01.tar.gz

All well and good so far, since my code depends on that module but doesn't specify a minimum version for it. All is working as advertised.

However, other modules before this one depend on later versions of this module, and do list a minimum version:

Still all well and good, since the necessary minimum version of that module is installed. Until this line, that is:

cpanm --verbose PHAYLON/MooseX-Types-0.01.tar.gz

when cpanm actually downgrades whatever the installed version is back to 0.01.

As a result, many unrelated explosions occur and the build errors out.

I'm guessing that the line calling cpanm has to be modified such that it also has a --skip-satisfied option passed in, which would prevent downgrading. (Mind you, I'm not sure if this option would actually work when explicit filenames are passed the way they're being passed here.)

Docs question in dist.ini recommendation

In the Dist::Zilla::Plugin::TravisYML docs, can you explain what the options under [@Git] are for, and why we'd want to use them? It's not clear to me from reading - perhaps it will be clear after I stick that stuff in my file and press "go", but I'd like to understand it first.

wrong phase being used

It's not necessary to use the InstallTool phase here -- you can generate a FromCode file in the normal GenerateFile and FileMunger phases that reads from the prereq data after it has been finalized (twhich is exactly what the core [MetaYAML] and [MetaJSON] plugins do).

Support for sudo: false

I would be great if there was a way to add sudo: false to the travis yaml file. That way the newer (faster!) docker based infrastructure could be used. I wouldn't be shocked if there's a good way to do this right now, but a scan of the docs didn't point anything out.

cpanm fails to find Dist::Zilla::TravisCI

If I try:

$ cpanm -v Dist::Zilla::TravisCI
cpanm (App::cpanminus) 1.5017 on perl 5.014002 built for darwin-2level
Work directory is /Users/melo/.cpanm/work/1346801985.62430
You have make /usr/bin/make
You have LWP 6.04
You have /usr/bin/tar: bsdtar 2.8.3 - libarchive 2.8.3
You have /usr/bin/unzip
Searching Dist::Zilla::TravisCI on mirror file:///Users/melo/perl5/cpan ...
Downloading index file file:///Users/melo/perl5/cpan/modules/02packages.details.txt.gz ...
! Finding Dist::Zilla::TravisCI () on mirror file:///Users/melo/perl5/cpan failed.
! Couldn't find module or a distribution Dist::Zilla::TravisCI ()

A similar problem exists with Gearman and Gearman::Worker/::Client. See Miyagawa comment about this and the pull request he sent to that dist, should be enough for a fix here.

perl-carton/carton#34 (comment)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.