From 355ed6873b7f5696f6c00c4ab18b68f9e2e1c199 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Tue, 30 Jan 2024 10:22:21 -0500 Subject: [PATCH] php +psql Refs #5048 --- projects/php.net/package.yml | 38 +++++++++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/projects/php.net/package.yml b/projects/php.net/package.yml index c8a86c4127..ce9a725f7b 100644 --- a/projects/php.net/package.yml +++ b/projects/php.net/package.yml @@ -41,6 +41,7 @@ dependencies: build: dependencies: freetype.org: '*' + postgresql.org: '*' darwin: tukaani.org/xz: '*' @@ -124,6 +125,8 @@ build: - --with-libedit - --with-openssl - --with-pdo-sqlite + - --with-pdo-pgsql={{deps.postgresql.org.prefix}} + - --with-pdo-mysql - --with-pic - --with-sodium - --with-sqlite3 @@ -156,6 +159,35 @@ provides: - bin/phpdbg - bin/phpize -test: | - php --version | grep {{ version }} - php -r 'echo "Hello World!\n";' +test: + - php --version | grep {{ version }} + + - php -r 'echo "Hello World!\n";' + + - run: + php $FIXTURE + fixture: | + + + - run: + - | + mkdir -p ./data + initdb -D ./data + pg_ctl -D ./data -l logfile start + createdb mary + + # in order to not force php to depend on postgres we are trying this out + - pkgx +psql php $FIXTURE + + - | + pg_ctl -D ./data stop + rm ./data + if: darwin # FIXME linux tests run as sudo which fails with initdb + fixture: | +