-
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #259 from fezfez/php8.2
Drop support php 7, add php 8.2 support
- Loading branch information
Showing
10 changed files
with
170 additions
and
486 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
PHP_VERSION="$1" | ||
|
||
if ! [[ "${PHP_VERSION}" =~ 8\.2 ]]; then | ||
echo "sqlsrv is only installed from pecl for PHP 8.2, ${PHP_VERSION} detected." | ||
exit 0; | ||
fi | ||
|
||
set +e | ||
|
||
apt-get update && apt-get install -y g++ unixodbc-dev | ||
pecl install sqlsrv | ||
echo "extension=sqlsrv.so" > /etc/php/${PHP_VERSION}/mods-available/sqlsrv.ini | ||
phpenmod -v ${PHP} -s cli sqlsrv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
WORKING_DIRECTORY=$2 | ||
JOB=$3 | ||
PHP_VERSION=$(echo "${JOB}" | jq -r '.php') | ||
|
||
|
||
if [ ! -z "$GITHUB_BASE_REF" ] && [[ "$GITHUB_BASE_REF" =~ ^[0-9]+\.[0-9] ]]; then | ||
readarray -td. TARGET_BRANCH_VERSION_PARTS <<<"${GITHUB_BASE_REF}."; | ||
unset 'TARGET_BRANCH_VERSION_PARTS[-1]'; | ||
declare -a TARGET_BRANCH_VERSION_PARTS | ||
MAJOR_OF_TARGET_BRANCH=${TARGET_BRANCH_VERSION_PARTS[0]} | ||
MINOR_OF_TARGET_BRANCH=${TARGET_BRANCH_VERSION_PARTS[1]} | ||
|
||
export COMPOSER_ROOT_VERISON="${MAJOR_OF_TARGET_BRANCH}.${MINOR_OF_TARGET_BRANCH}.99" | ||
echo "Exported COMPOSER_ROOT_VERISON as ${COMPOSER_ROOT_VERISON}" | ||
fi | ||
|
||
${WORKING_DIRECTORY}/.laminas-ci/install-sqlsrv-extension-via-pecl.sh "${PHP_VERSION}" || exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.