-
Notifications
You must be signed in to change notification settings - Fork 266
PHPLIB-563: Finalise PHP runtime axis #788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
df47b6f
0795d06
01a429f
ea831b2
fd81b1d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,10 @@ set -o errexit # Exit the script with error if any of the commands fail | |
|
||
install_extension () | ||
{ | ||
# Workaround to get PECL running on PHP 7.0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would it make sense to guard this in a conditional for https://stackoverflow.com/a/2172367/162228 suggests you could use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Despite me trying to use
Since this has no negative impact on other PHP versions, I'd use this unconditionally, especially since 7.0 is the next PHP version we'll drop support for (although no timeline for this exists). |
||
export PHP_PEAR_PHP_BIN=${PHP_PATH}/bin/php | ||
export PHP_PEAR_INSTALL_DIR=${PHP_PATH}/lib/php | ||
|
||
rm -f ${PHP_PATH}/lib/php.ini | ||
|
||
if [ "x${DRIVER_BRANCH}" != "x" ] || [ "x${DRIVER_REPO}" != "x" ]; then | ||
|
@@ -72,6 +76,15 @@ case "$DISTRO" in | |
;; | ||
esac | ||
|
||
case "$DEPENDENCIES" in | ||
lowest*) | ||
COMPOSER_FLAGS="${COMPOSER_FLAGS} --prefer-lowest" | ||
;; | ||
|
||
*) | ||
;; | ||
esac | ||
|
||
PHP_PATH=/opt/php/${PHP_VERSION}-64bit | ||
OLD_PATH=$PATH | ||
PATH=$PHP_PATH/bin:$OLD_PATH | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does the display name start with an asterisk?
Should we use a consistent order with other display names? I noticed the "test-dependencies" matrix below has some of the components here in a different order.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The asterisk is there to make sure these variants are sorted to the top of the list, as they are the ones we require for a PR to pass.
As for ordering in display names, I moved the main variant (e.g. PHP version in this case, MongoDB server version in other cases) to the front of the list. I have no objections against changing this if you prefer to have them alphabetically sorted in general.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I see now that you're prioritizing the variable axes over the fixed ones, and in the "test-dependencies" matrix only the MongoDB version varies. That all makes sense to leave as-is.