1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Build PDO OCI and OCI8 on azure

The extensions are build as shared to only check that they compile,
without running tests. The OCI8 extension does not properly SKIPIF
no database is available.

It should be noted that if we do want to also test these, then
(apart from running a database) it will also be necessary to configure
with LIBS="-Wl,--disable-new-dtags" in order to force the use of RPATH
instead of RUNPATH, the latter of which does not affect dlopened
libraries. Using LD_LIBRARY_PATH does not mesh well with our test
suite.

Closes GH-6604.
This commit is contained in:
Nikita Popov
2021-01-14 16:24:29 +01:00
parent daa420a0da
commit 869221cfb6
2 changed files with 12 additions and 0 deletions

View File

@@ -52,3 +52,13 @@ steps:
firebird-dev \
${{ parameters.packages }}
displayName: 'APT'
- script: |
mkdir /opt/oracle
wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip
unzip instantclient-basiclite-linuxx64.zip
wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-sdk-linuxx64.zip
unzip instantclient-sdk-linuxx64.zip
mv instantclient_*_* /opt/oracle/instantclient
# Interferes with libldap2 headers.
rm /opt/oracle/instantclient/sdk/include/ldap.h
displayName: 'Install Oracle Instant Client'

View File

@@ -64,6 +64,8 @@ steps:
--with-pdo-odbc=unixODBC,/usr \
--with-pdo-firebird \
--with-pdo-dblib \
--with-pdo-oci=shared,instantclient,/opt/oracle/instantclient \
--with-oci8=shared,instantclient,/opt/oracle/instantclient \
--enable-werror \
--with-config-file-path=/etc \
--with-config-file-scan-dir=/etc/php.d