зеркало из https://github.com/microsoft/msphpsql.git
53 строки
2.1 KiB
YAML
53 строки
2.1 KiB
YAML
sudo: required
|
|
|
|
os: linux
|
|
dist: trusty
|
|
|
|
group: edge
|
|
|
|
services:
|
|
- docker
|
|
|
|
env:
|
|
global:
|
|
- REPORT_EXIT_STATUS=1
|
|
- ACCEPT_EULA=Y
|
|
- PHPSQLDIR=/REPO/msphpsql-dev
|
|
- TEST_PHP_SQL_SERVER=sql
|
|
- SQLSRV_DBNAME=msphpsql_sqlsrv
|
|
- PDOSQLSRV_DBNAME=msphpsql_pdosqlsrv
|
|
- TEST_PHP_SQL_UID=sa
|
|
- TEST_PHP_SQL_PWD=Password123
|
|
|
|
before_install:
|
|
- docker pull microsoft/mssql-server-linux:2017-latest
|
|
|
|
install:
|
|
- docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=Password123' -p 1433:1433 --name=$TEST_PHP_SQL_SERVER -d microsoft/mssql-server-linux:2017-latest
|
|
- docker build --build-arg PHPSQLDIR=$PHPSQLDIR -t msphpsql-dev -f Dockerfile-msphpsql .
|
|
|
|
before_script:
|
|
- sleep 30
|
|
|
|
script:
|
|
- travis_retry docker run -e TRAVIS_JOB_ID -t -d -w $PHPSQLDIR --name=client --link $TEST_PHP_SQL_SERVER msphpsql-dev
|
|
- docker ps -a
|
|
- docker logs client
|
|
- travis_retry docker exec client python ./test/functional/setup/setup_dbs.py -dbname $SQLSRV_DBNAME
|
|
- travis_retry docker exec client python ./test/functional/setup/setup_dbs.py -dbname $PDOSQLSRV_DBNAME
|
|
- travis_retry docker exec client php ./source/pdo_sqlsrv/run-tests.php ./test/functional/pdo_sqlsrv/*.phpt
|
|
- travis_retry 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'
|
|
- docker exec client bash -c 'for f in ./test/functional/pdo_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/pdo_sqlsrv/*.out; do ls $f 2>/dev/null; cat $f 2>/dev/null; done || true'
|
|
- docker exec client python ./test/functional/setup/cleanup_dbs.py -dbname $SQLSRV_DBNAME
|
|
- docker exec client python ./test/functional/setup/cleanup_dbs.py -dbname $PDOSQLSRV_DBNAME
|
|
- docker exec client coveralls -e ./source/shared/ --gcov-options '\-lp'
|
|
- docker stop client
|
|
- docker ps -a
|
|
|
|
notifications:
|
|
email: false
|
|
|