Brendan Byrd > Dist-Zilla-TravisCI-0.96 > Dist::Zilla::Plugin::TravisYML



Annotate this POD


View/Report Bugs
Module Version: 0.96   Source   Latest Release: Dist-Zilla-TravisCI-1.15


Dist::Zilla::Plugin::TravisYML - creates a .travis.yml file for Travis CI


    ; defaults
    build_branch = /^build\/.*/
    notify_email = 1
    notify_irc   = 0
    mvdt         = 0
    ; These options are probably a good idea
    ; if you are going to use a build_branch
    release_branch  = build/%b
    release_message = Release build of v%v (on %b)
    allow_dirty = dist.ini
    allow_dirty = README
    allow_dirty = .travis.yml
    push_to = origin
    push_to = origin build/master:build/master


This plugin creates a .travis.yml file in your distro for CI smoke testing (or what we like to call "[chain smoking|Dist::Zilla::App::Command::chainsmoke/CHAIN-SMOKING-]"). It will also (optionally) create a separate .travis.yml file for your build directory after a release.

Why two files? Because chain smoking via DZIL will work a lot differently than a traditional C<Makefile.PL; make>. This tests both your distribution repo environment as well as what a CPAN user would see.

Of course, you still need to turn on TravisCI and the remote still needs to be a GitHub repo for any of this to work.



This is a regular expression indicating which (build) branches are okay for running through Travis CI, per the configuration's branch whitelist option. The value will be inserted directly as an only clause. The default is /^build\/.*/.

This more or less requires Git::CommitBuild to work. (Ordering is important, too. TravisYML comes before Git::CommitBuild.) You should change this to match up with the release_branch option, if your build branch is not going to reside in a build/* structure.

Also, if you want to disable build branch testing, you can set this to 0.


This affects the notification options of the resulting YML file. It can either be set to:

The default is 1.


This affects the notification options of the resulting YML file. It can either be set to:

The default is 0. Please ask permission from the room channel operators before enabling bot notification.


Turning this on enables Minimum Version Dependency Testing. This will make your YML file less of a static file, as it will now include commands to forcefully downgrade your dependencies to the lowest version that your prereqs said they would be able to use.

While going through the MVDT process is recommended, it can be a royal pain-in-the-ass sometimes, so this option isn't on by default. It's HIGHLY recommended that you read the above doc first to get an idea of what you're diving into.

This applies to both YML files.


The project homepage is

The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit to find a CPAN site near you, or see


Brendan Byrd <>


This software is Copyright (c) 2013 by Brendan Byrd.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)
syntax highlighting: