Merge pull request #425 from mlocati/easier-special-reqs
Simplify exclusion of whole distrospull/426/head
commit
21bb7a58e3
|
@ -1,5 +1,5 @@
|
|||
parallel zts
|
||||
pdo_sqlsrv !7.0-alpine3.7 !7.1-alpine3.7 !7.2-alpine3.7 !7.1-alpine3.8 !7.2-alpine3.8 !7.3-alpine3.8 !7.3-bullseye !7.4-bullseye !8.0-bullseye !8.1-bullseye
|
||||
pdo_sqlsrv !alpine3.7 !alpine3.8 !bullseye
|
||||
pthreads zts
|
||||
sqlsrv !7.0-alpine3.7 !7.1-alpine3.7 !7.2-alpine3.7 !7.1-alpine3.8 !7.2-alpine3.8 !7.3-alpine3.8 !7.1-alpine3.9 !7.1-alpine3.10 !7.3-bullseye !7.4-bullseye !8.0-bullseye !8.1-bullseye
|
||||
vips !7.0-alpine3.7 !7.1-alpine3.7 !7.2-alpine3.7 !7.1-alpine3.8 !7.2-alpine3.8 !7.3-alpine3.8 !7.1-alpine3.9 !7.2-alpine3.9 !7.3-alpine3.9 !7.0-jessie !7.1-jessie !7.2-jessie
|
||||
sqlsrv !alpine3.7 !alpine3.8 !7.1-alpine3.9 !7.1-alpine3.10 !bullseye
|
||||
vips !alpine3.7 !alpine3.8 !alpine3.9 !jessie
|
||||
|
|
|
@ -248,11 +248,11 @@ getAllPHPVersionsForExtension() {
|
|||
done
|
||||
done <"$CI_BUILD_DIR/data/supported-extensions"
|
||||
|
||||
filterUnsupportedExensionsForDistro_reqs="$CI_BUILD_DIR/data/special-requirements"
|
||||
if test -f "$filterUnsupportedExensionsForDistro_reqs"; then
|
||||
getAllPHPVersionsForExtension_reqs="$CI_BUILD_DIR/data/special-requirements"
|
||||
if test -f "$getAllPHPVersionsForExtension_reqs"; then
|
||||
getAllPHPVersionsForExtension_filtered_result=''
|
||||
for getAllPHPVersionsForExtension_result_filter in $getAllPHPVersionsForExtension_result; do
|
||||
if stringInList "!$getAllPHPVersionsForExtension_result_filter-$IPETEST_DOCKER_DISTRO" "$(cat "$filterUnsupportedExensionsForDistro_reqs" | grep -E "^$1[ \t]")"; then
|
||||
if stringInList "!$getAllPHPVersionsForExtension_result_filter-$IPETEST_DOCKER_DISTRO" "$(cat "$getAllPHPVersionsForExtension_reqs" | grep -E "^$1[ \t]")"; then
|
||||
printf 'Note: extension "%s" is not supported for distro "%s" using php "%s"\n' "$1" "$IPETEST_DOCKER_DISTRO" "$getAllPHPVersionsForExtension_result_filter" >/dev/stderr
|
||||
else
|
||||
getAllPHPVersionsForExtension_filtered_result="$getAllPHPVersionsForExtension_filtered_result $getAllPHPVersionsForExtension_result_filter"
|
||||
|
|
|
@ -29,11 +29,14 @@ sqlsrv_connect(
|
|||
'PWD' => 'password',
|
||||
]
|
||||
);
|
||||
$rc = 0;
|
||||
$errors = sqlsrv_errors(SQLSRV_ERR_ALL);
|
||||
if (is_array($errors)) {
|
||||
foreach ($errors as $error) {
|
||||
if (isset($error['message']) && stripos($error['message'], 'This extension requires the Microsoft ODBC Driver for SQL Server') !== false) {
|
||||
fwrite(STDERR, trim($error['message']) . "\n");
|
||||
$rc = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
exit($rc);
|
||||
|
|
Loading…
Reference in New Issue