added network inspection and sqlcmd logins

This commit is contained in:
Hadis-Fard 2017-07-31 15:35:21 -07:00
parent b4d71a1cdc
commit 73ad481f0d
2 changed files with 6 additions and 3 deletions

View file

@ -26,13 +26,14 @@ install:
script:
- docker logs sql
- docker run -e TRAVIS_JOB_ID -t -d -w $PHPSQLDIR --link $TEST_PHP_SQL_SERVER --name=client msphpsql-dev
- docker run -e TRAVIS_JOB_ID -t -d -w $PHPSQLDIR --name=client --link $TEST_PHP_SQL_SERVER msphpsql-dev
- docker network ls
- docker inspect -f "{{ .HostConfig.Links }}" client
- docker logs client
- docker ps -a
- 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 php ./source/pdo_sqlsrv/run-tests.php ./test/functional/pdo_sqlsrv/*.phpt
- docker exec client php ./test/functional/pdo_sqlsrv/*.phpt
- docker exec client php ./source/sqlsrv/run-tests.php ./test/functional/sqlsrv/*.phpt
- docker exec client bash -c 'for f in ./test/functional/sqlsrv/*.diff; do ls $f 2>/dev/null; cat $f 2>/dev/null; done || true'
- docker exec client bash -c 'for f in ./test/functional/sqlsrv/*.out; do ls $f 2>/dev/null; cat $f 2>/dev/null; done || true'

View file

@ -49,6 +49,8 @@ RUN echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bash_profile
RUN echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc
RUN /bin/bash -c "source ~/.bashrc"
RUN chmod +x ./Dockerfile-msphpsql-entrypoint.sh
CMD /bin/bash ./Dockerfile-msphpsql-entrypoint.sh
#install coveralls
RUN pip install --upgrade pip && pip install cpp-coveralls