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: | +