mirror of
https://gitlab.com/mobicoop/v3/service/user.git
synced 2026-02-01 22:40:45 +00:00
test ci --check
This commit is contained in:
@@ -1,6 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
while ! docker logs v3-user-db-test --tail=1 | grep -q -i "database system is ready to accept connections";
|
testlog() {
|
||||||
|
docker logs v3-user-db-test | grep -q "database system is ready to accept connections"
|
||||||
|
}
|
||||||
|
|
||||||
|
testlog 2> /dev/null
|
||||||
|
while [ $? -ne 0 ];
|
||||||
do
|
do
|
||||||
sleep 5
|
sleep 5
|
||||||
echo "Waiting for Test DB to be up..."
|
echo "Waiting for Test DB to be up..."
|
||||||
|
testlog 2> /dev/null
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user