Commit 223bee66 authored by Jason Hiser's avatar Jason Hiser 🚜

fixed to do tests as 3rd party to peasoup_umbrella

parent 1a025b8d
Pipeline #2404 failed with stages
in 11 minutes and 43 seconds
......@@ -3,23 +3,38 @@ set -e
set -x
# update submodules
git submodule sync --recursive
git submodule update --recursive --init
dir=$(pwd)
# gather info for debugging later, probably not necessary
pwd
hostname
whoami
env|grep CICD
time rsync -a --exclude='.git' $CICD_TO_TEST_DIR/ /tmp/cookbook_test
cd /tmp/cookbook_test
source set_env_vars
sudo ./get-peasoup-packages.sh all
./build-all.sh
bash ./postgres_setup.sh
cd $dir
scons
main()
{
# gather info for debugging later, probably not necessary
pwd
hostname
whoami
env|grep "^CICD"
git submodule sync
git submodule update --init --recursive
local orig_dir=$(pwd)
# puts cookbook_tests (and all submodules) in CICD_MODULE_WORK_DIR
cicd_setup_module_dependency allnp/peasoup_umbrella.git cookbook_tests
# Build/run $PSZ, test result
cd $CICD_MODULE_WORK_DIR/cookbook_tests
source set_env_vars
sudo ./get-peasoup-packages.sh all
# remove pedi files so that rebuilding includes re-doing pedi setup.
$PEDI_HOME/pedi -c -m manifest.txt || true # ignore errors in cleanup
./build-all.sh
dropdb $PGDATABASE 2>/dev/null || true
./postgres_setup.sh
cd $orig_dir
scons
}
main "$@"
~
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment