This repository was archived by the owner on Nov 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,18 @@ if [ "$(dpkg --print-architecture)" = "amd64" ] || [[ ! "${VCPKG_UNSUPPORTED_ARM
24
24
fi
25
25
checkOSPackages " tools-for-mariadb" libmariadb3 libmariadb-dev
26
26
check " g++" g++ -g main.cpp -o main.out -lmariadbcpp
27
- check " main.out" ./main.out
27
+ # MariaDB may take a few seconds to start, so retry on failure
28
+ check_ok=false
29
+ retry_count=0
30
+ until [ " ${check_ok} " = " true" ] || [ " ${retry_count} " -eq " 5" ]; do
31
+ ./main.out && check_ok=true
32
+ if [ " ${check_ok} " != " true" ]; then
33
+ echo " (*) Check failed, DB may not be up yet. Retrying in 5s..."
34
+ (( retry_count++ ))
35
+ sleep 5s
36
+ fi
37
+ done
38
+ check " main.out" sh -c " [ \" ${check_ok} \" = \" true\" ]"
28
39
rm main.out
29
40
mkdir -p build
30
41
cd build
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ services:
10
10
VARIANT : " 1.12.3"
11
11
# Phoenix Version: 1.4.17, 1.5.4, ...
12
12
PHOENIX_VERSION : " 1.6.2"
13
- # Node Version: 10, 11 , ...
14
- NODE_VERSION : " none "
13
+ # Node Version: 12, 14 , ...
14
+ NODE_VERSION : " 16 "
15
15
16
16
volumes :
17
17
- ..:/workspace:cached
Original file line number Diff line number Diff line change @@ -13,8 +13,10 @@ checkCommon
13
13
# Actual tests
14
14
checkExtension " jakebecker.elixir-ls"
15
15
check " elixir" iex --version
16
+ . /usr/local/share/nvm/nvm.sh
17
+ check " nvm" nvm install 16
16
18
check " node" node --version
17
- check " npm" npm install
19
+ check " npm" npm --version
18
20
check " build test project" echo yes | mix phx.new example --live
19
21
check " download deps" cd ./example && mix deps.get && mix deps.compile
20
22
# Hex only installed for non-root user, so skip phoenix test for root
You can’t perform that action at this time.
0 commit comments