Remove not passing extensions, test fewer extensions, fix installed extensions check

pull/10/head
Michele Locati 2018-12-11 15:48:50 +01:00
parent 6fbd39d2fa
commit 817156a26f
3 changed files with 40 additions and 19 deletions

View File

@ -1,4 +1,4 @@
amqp 7.0 7.1 7.2 7.3
amqp 7.0 7.1 7.2
apcu 7.0 7.1 7.2 7.3
bcmath 5.6 7.0 7.1 7.2 7.3
bz2 5.6 7.0 7.1 7.2 7.3
@ -15,9 +15,9 @@ imap 5.6 7.0 7.1 7.2 7.3
interbase 5.6 7.0 7.1 7.2 7.3
intl 5.6 7.0 7.1 7.2 7.3
ldap 5.6 7.0 7.1 7.2 7.3
mcrypt 5.6 7.0 7.1 7.2 7.3
mcrypt 5.6 7.0 7.1 7.2
memcache 5.6
memcached 5.6 7.0 7.1 7.2 7.3
memcached 5.6 7.0 7.1 7.2
mysql 5.6
mysqli 5.6 7.0 7.1 7.2 7.3
odbc 5.6 7.0 7.1 7.2 7.3
@ -28,7 +28,7 @@ pdo_firebird 5.6 7.0 7.1 7.2 7.3
pdo_mysql 5.6 7.0 7.1 7.2 7.3
pdo_odbc 5.6 7.0 7.1 7.2 7.3
pdo_pgsql 5.6 7.0 7.1 7.2 7.3
pdo_sqlsrv 7.0 7.1 7.2 7.3
pdo_sqlsrv 7.0 7.1 7.2
pgsql 5.6 7.0 7.1 7.2 7.3
pspell 5.6 7.0 7.1 7.2 7.3
pthreads 5.6 7.0
@ -39,18 +39,18 @@ snmp 5.6 7.0 7.1 7.2 7.3
soap 5.6 7.0 7.1 7.2 7.3
sockets 5.6 7.0 7.1 7.2 7.3
solr 5.6 7.0 7.1
sqlsrv 7.0 7.1 7.2 7.3
ssh2 5.6 7.0 7.1 7.2 7.3
sqlsrv 7.0 7.1 7.2
ssh2 5.6 7.0 7.1 7.2
sybase_ct 5.6
sysvmsg 5.6 7.0 7.1 7.2 7.3
sysvsem 5.6 7.0 7.1 7.2 7.3
sysvshm 5.6 7.0 7.1 7.2 7.3
tidy 5.6 7.0 7.1 7.2 7.3
timezonedb 5.6 7.0 7.1 7.2 7.3
uuid 5.6 7.0 7.1 7.2 7.3
wddx 5.6 7.0 7.1 7.2 7.3
xdebug 5.6 7.0 7.1 7.2 7.3
xmlrpc 5.6 7.0 7.1 7.2 7.3
xsl 5.6 7.0 7.1 7.2 7.3
yaml 5.6 7.0 7.1 7.2 7.3
zip 5.6 7.0 7.1 7.2 7.3
sysvmsg 5.6 7.0 7.1 7.2
sysvsem 5.6 7.0 7.1 7.2
sysvshm 5.6 7.0 7.1 7.2
tidy 5.6 7.0 7.1 7.2
timezonedb 5.6 7.0 7.1 7.2
uuid 5.6 7.0 7.1 7.2
wddx 5.6 7.0 7.1 7.2
xdebug 5.6 7.0 7.1 7.2
xmlrpc 5.6 7.0 7.1 7.2
xsl 5.6 7.0 7.1 7.2
yaml 5.6 7.0 7.1 7.2
zip 5.6 7.0 7.1 7.2

View File

@ -0,0 +1,21 @@
<?php
$extension = isset($argv[1]) ? trim($argv[1]) : '';
if ($extension === '') {
fprintf(STDERR, "Missing module handle.\n");
exit(1);
}
$nameMap = array(
'opcache' => 'Zend OPcache',
);
$extensionLowerCase = strtolower($extension);
if (isset($nameMap[$extensionLowerCase])) {
$extension = $nameMap[$extensionLowerCase];
}
if (extension_loaded($extension)) {
exit(0);
}
fprintf(STDERR, sprintf("Extension not loaded: %s\n", $extension));
exit(1);

View File

@ -56,7 +56,7 @@ testExtension () {
testExtension_Image="$(getExtensionImage "${1}" "${2}")"
printf ' - Docker image: %s\n' "${testExtension_Image}"
testExtension_out=`mktemp`
if $(docker run --rm --volume "${TRAVIS_BUILD_DIR}:/app" --workdir /app "${testExtension_Image}" bash -c "./install-php-extensions ${1} && php -r "'"'"exit(extension_loaded('${1}') ? 0 : 1);"'"'"" >"${testExtension_out}" 2>&1); then
if $(docker run --rm --volume "${TRAVIS_BUILD_DIR}:/app" --workdir /app "${testExtension_Image}" bash -c "./install-php-extensions '${1}' && php ./scripts/check-installed-extension.php '${1}'" >"${testExtension_out}" 2>&1); then
rm -rf "${testExtension_out}"
printf ' - Passed\n'
return 0