Merge branch 'dev' of feistymeow.org:feisty_meow into dev
authorChris Koeritz <fred@gruntose.com>
Thu, 23 Nov 2017 07:24:34 +0000 (02:24 -0500)
committerChris Koeritz <fred@gruntose.com>
Thu, 23 Nov 2017 07:24:34 +0000 (02:24 -0500)
scripts/generator/jenkins_builder.sh [new file with mode: 0644]

diff --git a/scripts/generator/jenkins_builder.sh b/scripts/generator/jenkins_builder.sh
new file mode 100644 (file)
index 0000000..a61c362
--- /dev/null
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+# got really tired of seeing this as a big long single line in jenkins, plus
+# it kept breaking and was a huge pain to edit.  so now it's in a much more
+# readable file.
+# the only parameter is the path to the feisty meow codebase being built and
+# tested.
+
+feisty_path="$1"; shift
+
+if [ -z "$feisty_path" ]; then
+  echo This script requires the path to the feisty meow codebase under test.
+  exit 1
+fi
+
+export RUN_ALL_TESTS=true
+export HOME="$(mktemp -d "$feisty_path/home_store.XXXXXX")"
+cd "$feisty_path"
+export FEISTY_MEOW_APEX="$(\pwd)"
+export FEISTY_MEOW_SCRIPTS=$FEISTY_MEOW_APEX/scripts
+bash "$feisty_path/scripts/core/reconfigure_feisty_meow.sh"
+source "$feisty_path/scripts/core/launch_feisty_meow.sh"
+var FEISTY_MEOW_APEX FEISTY_MEOW_SCRIPTS
+bash "$feisty_path/scripts/generator/produce_feisty_meow.sh"
+