Merge branch 'master' of feistymeow.org:feisty_meow
[feisty_meow.git] / scripts / generator / jenkins_builder.sh
index 5ae007566a7218d6080d71355ede78e3af733293..3b67d6e38afa9c3a6b40100d76ba20d4bc2ed0e4 100644 (file)
@@ -8,12 +8,22 @@
 
 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
+# clean up any old home storage paths.
+\rm -rf "$feisty_path/home_store".*
+# set home folder to a new home_store.random folder, for anything that
+# feisty meow needs to store under $HOME.
 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"
-echo after probably hosed launch
 var FEISTY_MEOW_APEX FEISTY_MEOW_SCRIPTS
 bash "$feisty_path/scripts/generator/produce_feisty_meow.sh"