From 75bd5b1c4aac996422eca2a7f498b31d1d1bba18 Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Fri, 28 Jan 2011 16:02:14 -0500 Subject: Add a builder_variablse YAML key, which passed environment variables to the builder --- t/005_builder.t | 5 +++-- t/data/test.yml | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 't') diff --git a/t/005_builder.t b/t/005_builder.t index 84e13ef..81cdd98 100644 --- a/t/005_builder.t +++ b/t/005_builder.t @@ -44,7 +44,7 @@ use jitterbug::Builder; 'DBIC' => { 'schema' => { 'connect_info' => [ - 'dbi:SQLite:dbname=jitterbug.db' + 'dbi:SQLite:dbname=t/data/jitterbug.db' ], 'pckg' => 'jitterbug::Schema', 'skip_automake' => '1' @@ -54,7 +54,8 @@ use jitterbug::Builder; 'jitterbug' => { 'build_process' => { 'on_failure' => './scripts/build-failed.sh', - 'builder' => './scripts/capsule.sh' + 'builder' => './scripts/capsule.sh', + 'builder_variables' => 'STUFF=BLAH', }, 'builder' => {}, 'reports' => { diff --git a/t/data/test.yml b/t/data/test.yml index e4144c3..9ec509e 100644 --- a/t/data/test.yml +++ b/t/data/test.yml @@ -17,6 +17,7 @@ jitterbug: dir: /tmp/build build_process: builder: ./scripts/capsule.sh + builder_variables: STUFF=BLAH on_failure: ./scripts/build-failed.sh plugins: @@ -25,6 +26,6 @@ plugins: skip_automake: 1 pckg: "jitterbug::Schema" connect_info: - - dbi:SQLite:dbname=jitterbug.db + - dbi:SQLite:dbname=t/data/jitterbug.db -- cgit 1.4.1