Fix regression test bugs
This commit is contained in:
Родитель
009086c6ad
Коммит
6610daae4a
|
@ -24,7 +24,18 @@ if [ "$(dpkg --print-architecture)" = "amd64" ] || [[ ! "${VCPKG_UNSUPPORTED_ARM
|
|||
fi
|
||||
checkOSPackages "tools-for-mariadb" libmariadb3 libmariadb-dev
|
||||
check "g++" g++ -g main.cpp -o main.out -lmariadbcpp
|
||||
check "main.out" ./main.out
|
||||
# MariaDB may take a few seconds to start, so retry on failure
|
||||
check_ok=false
|
||||
retry_count=0
|
||||
until [ "${check_ok}" = "true" ] || [ "${retry_count}" -eq "5" ]; do
|
||||
./main.out && check_ok=true
|
||||
if [ "${check_ok}" != "true" ]; then
|
||||
echo "(*) Check failed, DB may not be up yet. Retrying in 5s..."
|
||||
(( retry_count++ ))
|
||||
sleep 5s
|
||||
fi
|
||||
done
|
||||
check "main.out" sh -c "[ \"${check_ok}\" = \"true\" ]"
|
||||
rm main.out
|
||||
mkdir -p build
|
||||
cd build
|
||||
|
|
|
@ -10,8 +10,8 @@ services:
|
|||
VARIANT: "1.12.3"
|
||||
# Phoenix Version: 1.4.17, 1.5.4, ...
|
||||
PHOENIX_VERSION: "1.6.2"
|
||||
# Node Version: 10, 11, ...
|
||||
NODE_VERSION: "none"
|
||||
# Node Version: 12, 14, ...
|
||||
NODE_VERSION: "16"
|
||||
|
||||
volumes:
|
||||
- ..:/workspace:cached
|
||||
|
|
|
@ -13,8 +13,10 @@ checkCommon
|
|||
# Actual tests
|
||||
checkExtension "jakebecker.elixir-ls"
|
||||
check "elixir" iex --version
|
||||
. /usr/local/share/nvm/nvm.sh
|
||||
check "nvm" nvm install 16
|
||||
check "node" node --version
|
||||
check "npm" npm install
|
||||
check "npm" npm --version
|
||||
check "build test project" echo yes | mix phx.new example --live
|
||||
check "download deps" cd ./example && mix deps.get && mix deps.compile
|
||||
# Hex only installed for non-root user, so skip phoenix test for root
|
||||
|
|
Загрузка…
Ссылка в новой задаче