Merge branch 'master' of feistymeow.org:feisty_meow
[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 export HOME="$(mktemp -d "$feisty_path/home_store.XXXXXX")"
18 cd "$feisty_path"
19 export FEISTY_MEOW_APEX="$(\pwd)"
20 export FEISTY_MEOW_SCRIPTS=$FEISTY_MEOW_APEX/scripts
21 bash "$feisty_path/scripts/core/reconfigure_feisty_meow.sh"
22 source "$feisty_path/scripts/core/launch_feisty_meow.sh"
23 var FEISTY_MEOW_APEX FEISTY_MEOW_SCRIPTS
24 bash "$feisty_path/scripts/generator/produce_feisty_meow.sh"
25