updated to clean home_store
[feisty_meow.git] / scripts / generator / jenkins_builder.sh
1 #!/bin/bash
2
3 # got really tired of seeing this as a big long single line in jenkins, plus
4 # it kept breaking and was a huge pain to edit.  so now it's in a much more
5 # readable file.
6 # the only parameter is the path to the feisty meow codebase being built and
7 # tested.
8
9 feisty_path="$1"; shift
10
11 if [ -z "$feisty_path" ]; then
12   echo This script requires the path to the feisty meow codebase under test.
13   exit 1
14 fi
15
16 export RUN_ALL_TESTS=true
17 # clean up any old home storage paths.
18 \rm -rf "$feisty_path/home_store".*
19 # set home folder to a new home_store.random folder, for anything that
20 # feisty meow needs to store under $HOME.
21 export HOME="$(mktemp -d "$feisty_path/home_store.XXXXXX")"
22 cd "$feisty_path"
23 export FEISTY_MEOW_APEX="$(\pwd)"
24 export FEISTY_MEOW_SCRIPTS=$FEISTY_MEOW_APEX/scripts
25 bash "$feisty_path/scripts/core/reconfigure_feisty_meow.sh"
26 source "$feisty_path/scripts/core/launch_feisty_meow.sh"
27 var FEISTY_MEOW_APEX FEISTY_MEOW_SCRIPTS
28 bash "$feisty_path/scripts/generator/produce_feisty_meow.sh"
29