From b85ff57fdb4dd7a7e47c3aaada7f314e7706d393 Mon Sep 17 00:00:00 2001 From: Benjamin Morel Date: Fri, 16 Nov 2018 01:24:39 +0100 Subject: [PATCH] Use PECL sqlsrv & pdo_sqlsrv devel versions (5.4.0preview) with PHP 7.3 --- .travis.yml | 18 ++++++++++++++++++ tests/travis/install-mssql-pdo_sqlsrv.sh | 7 ++++++- tests/travis/install-mssql-sqlsrv.sh | 7 ++++++- 3 files changed, 30 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 22bef2b7129..49fb1d6f77b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -411,6 +411,15 @@ jobs: before_script: - bash ./tests/travis/install-mssql-$DB.sh - bash ./tests/travis/install-mssql.sh + - stage: Test + php: 7.3 + env: DB=sqlsrv + sudo: required + services: + - docker + before_script: + - bash ./tests/travis/install-mssql-$DB.sh + - bash ./tests/travis/install-mssql.sh - stage: Test php: 7.1 @@ -430,6 +439,15 @@ jobs: before_script: - bash ./tests/travis/install-mssql-$DB.sh - bash ./tests/travis/install-mssql.sh + - stage: Test + php: 7.3 + env: DB=pdo_sqlsrv + sudo: required + services: + - docker + before_script: + - bash ./tests/travis/install-mssql-$DB.sh + - bash ./tests/travis/install-mssql.sh - stage: Test env: DB=ibm_db2 COVERAGE=yes diff --git a/tests/travis/install-mssql-pdo_sqlsrv.sh b/tests/travis/install-mssql-pdo_sqlsrv.sh index e9165549f6f..5295a38cc28 100644 --- a/tests/travis/install-mssql-pdo_sqlsrv.sh +++ b/tests/travis/install-mssql-pdo_sqlsrv.sh @@ -3,4 +3,9 @@ set -ex echo "Installing extension" -pecl install pdo_sqlsrv + +if [ "$TRAVIS_PHP_VERSION" == "7.3" ]; then + pecl install pdo_sqlsrv-devel +else + pecl install pdo_sqlsrv +fi diff --git a/tests/travis/install-mssql-sqlsrv.sh b/tests/travis/install-mssql-sqlsrv.sh index dede9458f7c..8a63a9fb342 100644 --- a/tests/travis/install-mssql-sqlsrv.sh +++ b/tests/travis/install-mssql-sqlsrv.sh @@ -3,4 +3,9 @@ set -ex echo "Installing extension" -pecl install sqlsrv + +if [ "$TRAVIS_PHP_VERSION" == "7.3" ]; then + pecl install sqlsrv-devel +else + pecl install sqlsrv +fi