Fix CI infrastructure (.bat/.sh) to initialise Git submodules before build

This commit is contained in:
Dom Rodriguez 2020-05-30 22:33:08 +01:00 committed by Povilas Kanapickas
parent 938ad34e2d
commit b16ad17340
2 changed files with 6 additions and 0 deletions

View File

@ -33,6 +33,8 @@ set B_QT_FULLPATH=%B_QT_ROOT%\%B_QT_VER%\%B_QT_MSVC%
echo Bonjour: %BONJOUR_SDK_HOME%
echo Qt: %B_QT_FULLPATH%
git submodule update --init --recursive
rmdir /q /s build
mkdir build
if ERRORLEVEL 1 goto failed

View File

@ -18,6 +18,10 @@ if [ "$(uname)" = "Darwin" ]; then
fi
# allow local customizations to build environment
[ -r ./build_env.sh ] && . ./build_env.sh
# Initialise Git submodules
git submodule update --init --recursive
B_CMAKE_FLAGS="-DCMAKE_BUILD_TYPE=$B_BUILD_TYPE $B_CMAKE_FLAGS"
rm -rf build
mkdir build || exit 1