Skip to content

Instantly share code, notes, and snippets.

@ugexe
Created October 14, 2014 03:27
Show Gist options
  • Save ugexe/6ad9d4145cacfecf2a71 to your computer and use it in GitHub Desktop.
Save ugexe/6ad9d4145cacfecf2a71 to your computer and use it in GitHub Desktop.
[nickl@db-server Text--Levenshtein--XS]$ dzil clean
[DZ] clean: removing .build
[DZ] clean: removing Text-Levenshtein-XS-0.423
[DZ] clean: removing Text-Levenshtein-XS-0.423.tar.gz
[nickl@db-server Text--Levenshtein--XS]$ dzil build
[Phase_Begins] ########## Before Build ##########
[Phase_Ends] ########## Before Build ##########
[DZ] beginning to build Text-Levenshtein-XS
[Phase_Begins] ########## Gather Files ##########
[Phase_Ends] ########## Gather Files ##########
[Phase_Begins] ########## Prune Files ##########
[Phase_Ends] ########## Prune Files ##########
[Phase_Begins] ########## Provide Version ##########
[Git::NextVersion] Bumping version from 0.422 to 0.423
[Phase_Ends] ########## Provide Version ##########
[Phase_Begins] ########## Munge Files ##########
[DZ] dist's main_module is lib/Text/Levenshtein/XS.pm
[DZ] extracting distribution abstract from lib/Text/Levenshtein/XS.pm
[Phase_Begins] ########## Metadata ##########
[Phase_Begins] ########## Dump Config ##########
[Phase_Ends] ########## Dump Config ##########
[Phase_Ends] ########## Metadata ##########
[Phase_Ends] ########## Munge Files ##########
[Phase_Begins] ########## Bundle Config ##########
[Phase_Begins] ########## Share Dir ##########
[Phase_Ends] ########## Share Dir ##########
[Phase_Ends] ########## Bundle Config ##########
[Phase_Begins] ########## Setup Installer ##########
[Phase_Ends] ########## Setup Installer ##########
[DZ] writing Text-Levenshtein-XS in Text-Levenshtein-XS-0.423
[Phase_Begins] ########## After Build ##########
[ReadmeMkdnInRoot] overriding README.mkdn in root
[CopyFilesFromBuild] Copied Text-Levenshtein-XS-0.423/Makefile.PL to ./Makefile.PL
[CopyFilesFromBuild] Copied Text-Levenshtein-XS-0.423/LICENSE to ./LICENSE
[Git::CommitBuild] No changes since the last build; not committing
[Phase_Ends] ########## After Build ##########
[Phase_Begins] ########## Before Archive ##########
[Phase_Ends] ########## Before Archive ##########
[DZ] building archive with Archive::Tar::Wrapper
[DZ] writing archive to Text-Levenshtein-XS-0.423.tar.gz
[nickl@db-server Text--Levenshtein--XS]$ dzil test
[DZ] building distribution under .build/HMAleBbrUi for installation
[Phase_Begins] ########## Before Build ##########
[Phase_Ends] ########## Before Build ##########
[DZ] beginning to build Text-Levenshtein-XS
[Phase_Begins] ########## Gather Files ##########
[Phase_Ends] ########## Gather Files ##########
[Phase_Begins] ########## Prune Files ##########
[Phase_Ends] ########## Prune Files ##########
[Phase_Begins] ########## Provide Version ##########
[Git::NextVersion] Bumping version from 0.422 to 0.423
[Phase_Ends] ########## Provide Version ##########
[Phase_Begins] ########## Munge Files ##########
[DZ] dist's main_module is lib/Text/Levenshtein/XS.pm
[DZ] extracting distribution abstract from lib/Text/Levenshtein/XS.pm
[Phase_Begins] ########## Metadata ##########
[Phase_Begins] ########## Dump Config ##########
[Phase_Ends] ########## Dump Config ##########
[Phase_Ends] ########## Metadata ##########
[Phase_Ends] ########## Munge Files ##########
[Phase_Begins] ########## Bundle Config ##########
[Phase_Begins] ########## Share Dir ##########
[Phase_Ends] ########## Share Dir ##########
[Phase_Ends] ########## Bundle Config ##########
[Phase_Begins] ########## Setup Installer ##########
[Phase_Ends] ########## Setup Installer ##########
[DZ] writing Text-Levenshtein-XS in .build/HMAleBbrUi
[Phase_Begins] ########## After Build ##########
[ReadmeMkdnInRoot] overriding README.mkdn in root
[CopyFilesFromBuild] Copied .build/HMAleBbrUi/Makefile.PL to ./Makefile.PL
[CopyFilesFromBuild] Copied .build/HMAleBbrUi/LICENSE to ./LICENSE
[Git::CommitBuild] No changes since the last build; not committing
[Phase_Ends] ########## After Build ##########
[Phase_Begins] ########## Test Runner ##########
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Text-Levenshtein-XS' version '0.423'
Building Text-Levenshtein-XS
t/00-compile.t ................ 1/2
# Failed test 'Text/Levenshtein/XS.pm loaded ok'
# at t/00-compile.t line 40.
# got: '512'
# expected: '0'
Text::Levenshtein::XS object version 0.421 does not match bootstrap parameter 0.423 at /home/nickl/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-linux/DynaLoader.pm line 216.
Compilation failed in require at -e line 1.
# Failed test 'no warnings found'
# at t/00-compile.t line 51.
# got: '2'
# expected: '0'
# got warnings: [
# 'Text::Levenshtein::XS object version 0.421 does not match bootstrap parameter 0.423 at /home/nickl/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-linux/DynaLoader.pm line 216.
# ',
# 'Compilation failed in require at -e line 1.
# '
# ]
# Looks like you failed 2 tests of 2.
t/00-compile.t ................ Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/2 subtests
t/000-report-versions-tiny.t .. #
#
# Generated by Dist::Zilla::Plugin::ReportVersions::Tiny v1.10
# perl: 5.020000 (wanted 5.008) on linux from /home/nickl/perl5/perlbrew/perls/perl-5.20.0/bin/perl
#
# Exporter => 5.70 (want any version)
# File::Spec => 3.47 (want any version)
# File::Temp => 0.2304 (want any version)
# IO::Handle => 1.35 (want any version)
# IPC::Open3 => 1.16 (want any version)
# Module::Build => 0.4206 (want 0.28)
# Test::More => 1.001002 (want 0.88)
# XSLoader => 0.17 (want any version)
# strict => 1.08 (want any version)
# utf8 => 1.13 (want any version)
# warnings => 1.23 (want any version)
#
# Thanks for using my code. I hope it works for you.
# If not, please try and include this output in the bug report.
# That will help me reproduce the issue and solve your problem.
#
t/000-report-versions-tiny.t .. ok
t/00_compile.t ................ 1/1
# Failed test 'use Text::Levenshtein::XS;'
# at t/00_compile.t line 15.
# Tried to use 'Text::Levenshtein::XS'.
# Error: Text::Levenshtein::XS object version 0.421 does not match bootstrap parameter 0.423 at /home/nickl/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-linux/DynaLoader.pm line 216.
# Compilation failed in require at t/00_compile.t line 15.
# BEGIN failed--compilation aborted at t/00_compile.t line 15.
# Looks like you failed 1 test of 1.
t/00_compile.t ................ Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests
t/01_imports.t ................ 1/1
# Failed test 'use Text::Levenshtein::XS;'
# at t/01_imports.t line 15.
# Tried to use 'Text::Levenshtein::XS'.
# Error: Text::Levenshtein::XS object version 0.421 does not match bootstrap parameter 0.423 at /home/nickl/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-linux/DynaLoader.pm line 216.
# Compilation failed in require at t/01_imports.t line 15.
# BEGIN failed--compilation aborted at t/01_imports.t line 15.
# Looks like you failed 1 test of 1.
t/01_imports.t ................ Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests
t/02_distance.t ............... Text::Levenshtein::XS object version 0.421 does not match bootstrap parameter 0.423 at /home/nickl/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-linux/DynaLoader.pm line 216.
Compilation failed in require at t/02_distance.t line 14.
BEGIN failed--compilation aborted at t/02_distance.t line 14.
t/02_distance.t ............... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
Test Summary Report
-------------------
t/00-compile.t (Wstat: 512 Tests: 2 Failed: 2)
Failed tests: 1-2
Non-zero exit status: 2
t/00_compile.t (Wstat: 256 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 1
t/01_imports.t (Wstat: 256 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 1
t/02_distance.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
Files=5, Tests=5, 1 wallclock secs ( 0.02 usr 0.02 sys + 0.23 cusr 0.05 csys = 0.32 CPU)
Result: FAIL
Failed 4/5 test programs. 4/5 subtests failed.
error running /home/nickl/perl5/perlbrew/perls/perl-5.20.0/bin/perl Build test
[nickl@db-server Text--Levenshtein--XS]$
name = Text-Levenshtein-XS
author = ugexe <ugexe@cpan.org>
license = Perl_5
copyright_holder = Nick Logan
main_module = lib/Text/Levenshtein/XS.pm
[ReportPhase / Phase_Begins] ; report on everything
; -- start off by bumping the version
; find the last tag, and bump to next version via Version::Next;
; if you need a different version number, set the V env. variable
[Git::NextVersion]
version_by_branch = 1
; -- basic dist skeleton
; gather everything in the distribution directory;
; exclude files added later via CopyFilesFromBuild
[GatherDir]
exclude_filename = Makefile.PL
exclude_filename = LICENSE
exclude_filename = cpanfile
[PruneCruft]
[AutoPrereqs] ; automatically find our prereqs
[Prereqs::AuthorDeps] ; add author prereqs to meta files as develop prereqs
[CPANFile] ; generate cpanfile from prereqs
[GenerateFile / MANIFEST.SKIP] ; make our default MANIFEST.SKIP
filename = MANIFEST.SKIP
content = # Top-level filter (only include the following...)
content = ^(?!(?:script|examples|lib|inc|t|xt|maint)/|(?:(?:Makefile|Build)\.PL|README|MANIFEST|LICEN(?:S|C)E|Changes|META\.(?:yml|json)|.*\.xs)$)
content = # Avoid version control files.
content = \bRCS\b
content = \bCVS\b
content = ,v$
content = \B\.svn\b
content = \b_darcs\b
content = # (.git only in top-level, hence it's blocked above)
content = # Avoid temp and backup files.
content = ~$
content = \.tmp$
content = \.old$
content = \.bak$
content = \..*?\.sw[po]$
content = \#$
content = \b\.#
content = # avoid OS X finder files
content = \.DS_Store$
content = # ditto for Windows
content = \bdesktop\.ini$
content = \b[Tt]humbs\.db$
content = # Avoid patch remnants
content = \.orig$
content = \.rej$
[ManifestSkip] ; don't put anything in MANIFEST.SKIP in the build
skipfile = MANIFEST.SKIP
; -- Generate tons of tests
[ReportVersions::Tiny] ; report module versions used during installation
[Test::Compile] ; Create a t/00-compile.t file that auto-compiles every module in the dist
fake_home = 1 ; fakes $ENV{HOME} just in case (for cpan smoke testers)
[Test::Perl::Critic]
critic_config = t/perlcriticrc
[Test::DistManifest] ; tests correctness of the manifest
[Test::Version] ; makes sure there's a version
is_strict = 0
has_version = 1
[MetaTests] ; test meta.yml
[Test::CPAN::Meta::JSON] ; test meta.json
[Test::MinimumVersion] ; tests for a minimum version
[MojibakeTests] ; test file encodings
[PodCoverageTests] ; test pod coverage
[PodSyntaxTests] ; test pod syntax
[Test::Portability] ; test portability of file names
[Test::Synopsis] ; make sure the synopsis is compilable ;doesn't work with heredocs
[Test::Pod::LinkCheck] ; find broken links
[Test::CPAN::Changes] ; test changelog conformance to CPAN standards
[Test::Kwalitee] ; check kwalitee metric
; -- munge files
[Prepender] ; automatically add lines following the shebang in modules
copyright = 1
; authordep Dist::Zilla::Plugin::PkgVersion = 5.012
[PkgVersion] ; add package version; die if line inserted
die_on_line_insertion = 1
[PodWeaver] ; weave our POD and add useful boilerplate
; config_plugin = @Apocalyptic
; [LocaleMsgfmt] ; compile .po files to .mo files in share/locale
; locale = share/locale
[ContributorsFromGit]
; update the Changelog
[NextRelease]
time_zone = local
filename = Changes
; -- generate/process meta-information
[ExecDir] ; automatically install files from bin/ directory as executables ( if it exists )
dir = bin
[ShareDir] ; automatically install File::ShareDir files from share/ ( if it exists )
dir = share
[MinimumPerl] ; automatically find the minimum perl version required and add it to prereqs
[Metadata]
resources.homepage = https://metacpan.org/release/Text-Levenshtein-XS
[MetaConfig] ; dump dzil config into metadata
[MetaData::BuiltWith] ; dump entire perl modules we used to build into metadata
[Repository] ; set git repository path by looking at git configs
git_remote = origin
url = https://github.com/ugexe/Text--Levenshtein--XS.git
web = https://github.com/ugexe/Text--Levenshtein--XS
[MetaResources] ; add arbitrary resources to metadata
license = http://dev.perl.org/licenses/
; generate meta files
[MetaNoIndex] ; tell PAUSE to not index those directories
directory = inc t xt examples share eg mylib
[MetaProvides::Package] ; get provides from package definitions in files
meta_noindex = 1
[License] ; create LICENSE file
[MakeMaker] ; create Makefile.PL file
[ModuleBuild] ; create Build.PL file
[DualBuilders] ; have M::B and EU::MM but select only M::B as prereq
prefer = build
[MetaYAML] ; create META.yml file
; need to do `git config --global github.user USERNAME` ; include Git info in Meta.yml
[GithubMeta]
issues = 1
user = ugexe
[MetaJSON] ; create META.json file
[ReadmeFromPod] ; create README file in build
[ReadmeAnyFromPod / ReadmeMkdnInRoot] ; create markdown README file in the project root
type = markdown
location = root
[Manifest] ; create the MANIFEST file
; copy some helper files out of the build so contributors can just clone and build
[CopyFilesFromBuild]
copy = cpanfile
copy = Makefile.PL
copy = LICENSE
; -- pre-release
; Perform Git operations after a release or build
; [Git::Check] ; check for a clean state before release; always fails because build adds new files
[CheckChangesHasContent] ; make sure you explained your changes :)
changelog = Changes
[TestRelease] ; make sure that we won't release a FAIL distro
[CheckPrereqsIndexed] ; make sure that our prereqs actually exist on CPAN
[ConfirmRelease] ; double-check that we ACTUALLY want a release
; -- test
[RunExtraTests] ; run the xt/ tests when `dzil test --release` is run
; -- release
; [UploadToCPAN] ; upload your dist to CPAN using CPAN::Uploader
; -- post-release
[ArchiveRelease] ; archive our tarballs under releases/
directory = releases
[Clean] ; run dzil clean so we have/commit no cruft
[Git::Commit] ; commit the dzil-generated stuff (allow_dirty means commit it)
allow_dirty = README.mkdn
allow_dirty = Changes
allow_dirty = dist.ini
allow_dirty = Makefile.PL
allow_dirty = cpanfile
commit_msg = New CPAN release of %N - v%v%n%n%c
add_files_in = releases ; add our release tarballs to the repo
; commit released build to "dev" branch
[Git::CommitBuild]
release_branch = dev/%b
message = Build of release v%v (%h on %b)
[Git::Tag] ; tag our new release
tag_format = v%v
branch = dev
tag_message = Tagged release %v
;NOTE: you'll have to tag the build manually
[Git::Push] ; automatically push to the "origin" defined in .git/config
push_to = origin HEAD:refs/heads/dev
;NOTE: you'll have to push the build manually
[ReportPhase / Phase_Ends]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment