mirror of
https://gitlab.com/mobicoop/v3/service/user.git
synced 2025-12-31 02:42:40 +00:00
test ci --check
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
#!/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
|
||||
sleep 5
|
||||
echo "Waiting for Test DB to be up..."
|
||||
testlog 2> /dev/null
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user