added test for connection from client to server
This commit is contained in:
parent
da77a1ec3c
commit
897468626f
|
@ -31,6 +31,7 @@ script:
|
||||||
- docker inspect -f "{{ .HostConfig.Links }}" client
|
- docker inspect -f "{{ .HostConfig.Links }}" client
|
||||||
- docker logs client
|
- docker logs client
|
||||||
- docker ps -a
|
- docker ps -a
|
||||||
|
- docker exec client bash -c ./TestSqlcmd.sh
|
||||||
- docker exec client python ./test/functional/setup/setup_dbs.py -dbname $SQLSRV_DBNAME
|
- docker exec client python ./test/functional/setup/setup_dbs.py -dbname $SQLSRV_DBNAME
|
||||||
- docker exec client python ./test/functional/setup/setup_dbs.py -dbname $PDOSQLSRV_DBNAME
|
- docker exec client python ./test/functional/setup/setup_dbs.py -dbname $PDOSQLSRV_DBNAME
|
||||||
- docker exec client php ./test/functional/pdo_sqlsrv/*.phpt
|
- docker exec client php ./test/functional/pdo_sqlsrv/*.phpt
|
||||||
|
|
11
TestSqlcmd.sh
Normal file
11
TestSqlcmd.sh
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
#!bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
$test = "sqlcmd -S sql -U sa -P Password123"
|
||||||
|
|
||||||
|
until $test; do
|
||||||
|
>&2 echo "SQL Server is starting up. Running initial db configuration"
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "SQL Server is up - starting app"
|
Loading…
Reference in a new issue