ha/devstack/build.sh
Dean Troyer 08bff2798f Followup opendev cleanup and test jobs
Depends-On: https://review.opendev.org/653964
Depends-On: https://review.opendev.org/653961
Depends-On: https://review.opendev.org/654013
Depends-On: https://review.opendev.org/654024
Depends-On: https://review.opendev.org/654255
Depends-On: https://review.opendev.org/654256
Change-Id: Ie110350e44b0dd333f3b3969773e4ef21674381c
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-04-21 14:31:33 -05:00

40 lines
672 B
Bash
Executable File

#!/bin/bash
# devstack/build.sh
# Test DevStack plugin builds without needing an entire DevStack job
set -o xtrace
set -o errexit
unset LANG
unset LANGUAGE
LC_ALL=en_US.utf8
export LC_ALL
# Keep track of the DevStack plugin directory
PLUGIN_DIR=$(cd $(dirname "$0")/.. && pwd)
PLUGIN_NAME=$(basename $PLUGIN_DIR)
# Keep plugin happy
declare -a GITDIR
GITDIR[$PLUGIN_NAME]=$PLUGIN_DIR
# Dummy function to keep plugin happy
function get_python_exec_prefix {
echo ""
}
function is_service_enabled {
return 0
}
# Get the build functions
source $PLUGIN_DIR/devstack/lib/ha
# Call builds
build_sm_common
install_sm_common_libs
build_sm_db
build_sm
build_sm_api