Skip to content

Commit

Permalink
add php8.3 to drone/appveyor (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
heelc29 authored Aug 15, 2024
1 parent fe028c2 commit 7abff99
Show file tree
Hide file tree
Showing 5 changed files with 340 additions and 45 deletions.
8 changes: 5 additions & 3 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ clone_folder: C:\projects\database

## Build matrix for lowest and highest possible targets
environment:
DLLVersion: "5.10.0"
DLLVersion: "5.12.0"
PHPBuild: "x64"
driver: sqlsrv
db_version: sql2017
Expand All @@ -16,6 +16,8 @@ environment:
php: 8.1
- db: mssql
php: 8.2
- db: mssql
php: 8.3

init:
- SET PATH=C:\Program Files\OpenSSL;c:\tools\php;C:\tools\composer;%PATH%
Expand Down Expand Up @@ -46,11 +48,11 @@ install:
# Get and install the MSSQL DLL's
cd c:\tools\php\ext
$source = "https://windows.php.net/downloads/pecl/releases/sqlsrv/$($env:DLLVersion)/php_sqlsrv-$($env:DLLVersion)-$($env:php)-nts-$($env:VC)-$($env:PHPBuild).zip"
$source = "https://downloads.php.net/~windows/pecl/releases/sqlsrv/$($env:DLLVersion)/php_sqlsrv-$($env:DLLVersion)-$($env:php)-nts-$($env:VC)-$($env:PHPBuild).zip"
$destination = "c:\tools\php\ext\php_sqlsrv-$($env:DLLVersion)-$($env:php)-nts-$($env:VC)-$($env:PHPBuild).zip"
Invoke-WebRequest $source -OutFile $destination
7z x -y php_sqlsrv-$($env:DLLVersion)-$($env:php)-nts-$($env:VC)-$($env:PHPBuild).zip > $null
$source = "https://windows.php.net/downloads/pecl/releases/pdo_sqlsrv/$($env:DLLVersion)/php_pdo_sqlsrv-$($env:DLLVersion)-$($env:php)-nts-$($env:VC)-$($env:PHPBuild).zip"
$source = "https://downloads.php.net/~windows/pecl/releases/pdo_sqlsrv/$($env:DLLVersion)/php_pdo_sqlsrv-$($env:DLLVersion)-$($env:php)-nts-$($env:VC)-$($env:PHPBuild).zip"
$destination = "c:\tools\php\ext\php_pdo_sqlsrv-$($env:DLLVersion)-$($env:php)-nts-$($env:VC)-$($env:PHPBuild).zip"
Invoke-WebRequest $source -OutFile $destination
7z x -y php_pdo_sqlsrv-$($env:DLLVersion)-$($env:php)-nts-$($env:VC)-$($env:PHPBuild).zip > $null
Expand Down
15 changes: 12 additions & 3 deletions .drone.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ local composer(phpversion, params) = {
local phpunit_common(phpversion) = {
name: 'PHPUnit',
image: 'joomlaprojects/docker-images:php' + phpversion,
[if phpversion == '8.3' then 'failure']: 'ignore',
[if phpversion == '8.4' then 'failure']: 'ignore',
commands: [
'vendor/bin/phpunit --configuration phpunit.xml.dist --testdox',
],
Expand All @@ -35,7 +35,7 @@ local phpunit_common(phpversion) = {
local phpunit_mysql(phpversion, driver) = {
name: 'PHPUnit',
image: 'joomlaprojects/docker-images:php' + phpversion,
[if phpversion == '8.3' then 'failure']: 'ignore',
[if phpversion == '8.4' then 'failure']: 'ignore',
commands: [
'php --ri ' + driver + ' || true',
'sleep 20',
Expand All @@ -46,7 +46,7 @@ local phpunit_mysql(phpversion, driver) = {
local phpunit(phpversion, driver) = {
name: 'PHPUnit',
image: 'joomlaprojects/docker-images:php' + phpversion,
[if phpversion == '8.3' then 'failure']: 'ignore',
[if phpversion == '8.4' then 'failure']: 'ignore',
commands: [
'php --ri ' + driver + ' || true',
'vendor/bin/phpunit --configuration phpunit.' + driver + '.xml.dist --testdox',
Expand Down Expand Up @@ -256,20 +256,29 @@ local pipeline_sqlsrv(phpversion, driver, dbversion, params) = {
},
pipeline_sqlite('8.1', 'sqlite', '--prefer-stable'),
pipeline_sqlite('8.2', 'sqlite', '--prefer-stable'),
pipeline_sqlite('8.3', 'sqlite', '--prefer-stable'),
pipeline_mysql('8.1', 'mysql', '5.7', '--prefer-stable'),
pipeline_mysql('8.2', 'mysql', '5.7', '--prefer-stable'),
pipeline_mysql('8.3', 'mysql', '5.7', '--prefer-stable'),
pipeline_mysql('8.1', 'mysql', '8.0', '--prefer-stable'),
pipeline_mysql('8.2', 'mysql', '8.0', '--prefer-stable'),
pipeline_mysql('8.3', 'mysql', '8.0', '--prefer-stable'),
pipeline_mysql('8.1', 'mysqli', '5.7', '--prefer-stable'),
pipeline_mysql('8.2', 'mysqli', '5.7', '--prefer-stable'),
pipeline_mysql('8.3', 'mysqli', '5.7', '--prefer-stable'),
pipeline_mysql('8.1', 'mysqli', '8.0', '--prefer-stable'),
pipeline_mysql('8.2', 'mysqli', '8.0', '--prefer-stable'),
pipeline_mysql('8.3', 'mysqli', '8.0', '--prefer-stable'),
pipeline_mariadb('8.1', 'mariadb', '10.2', '--prefer-stable'),
pipeline_mariadb('8.2', 'mariadb', '10.2', '--prefer-stable'),
pipeline_mariadb('8.3', 'mariadb', '10.2', '--prefer-stable'),
pipeline_postgres('8.1', 'pgsql', '10', '--prefer-stable'),
pipeline_postgres('8.2', 'pgsql', '10', '--prefer-stable'),
pipeline_postgres('8.3', 'pgsql', '10', '--prefer-stable'),
pipeline_postgres('8.1', 'pgsql', '11', '--prefer-stable'),
pipeline_postgres('8.2', 'pgsql', '11', '--prefer-stable'),
pipeline_postgres('8.3', 'pgsql', '11', '--prefer-stable'),
pipeline_sqlsrv('8.1', 'sqlsrv', '2017-latest', '--prefer-stable'),
pipeline_sqlsrv('8.2', 'sqlsrv', '2017-latest', '--prefer-stable'),
pipeline_sqlsrv('8.3', 'sqlsrv', '2017-latest', '--prefer-stable'),
]
Loading

0 comments on commit 7abff99

Please sign in to comment.