The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Dist::Zilla::Plugin::RunByBranch - Run external commands at specific phases of Dist::Zilla on regex'd Git branches

I am a very terrible programmer and user of words.

SYNOPSIS

  [RunByBranch::BeforeBuild]
  run = ^dev script/clean_artifacts.pl %s
  run = ^test script/prepare_tests.pl %n %v

  [RunByBranch::BeforeRelease]
  run = ^master$ script/myapp_deploy1.pl %s

  [RunByBranch::AfterBuild]
  run = ^dev script/myapp_after.pl %s %v
  run_no_trial ^dev script/no_trial.pl
  run = ^test(.*)/v1.[0-3]$ script/report_test_results.pl %s %v

  [RunByBranch::Test]
  run = ^feature/ script/report.pl

DESCRIPTION

This module aims to duplicate the interface of the fantasticly useful Dist::Zilla::Plugin::Run by allowing the user to specify a regex that determines on which Git branch the command should be run.

SEE ALSO

Dist::Zilla::Plugin::Run Dist::Zilla::Plugin::Git