1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-20 18:50:08 +03:00

gitlab-ci: Add downstream job for PHP

This commit is contained in:
Nick Wellnhofer 2025-03-11 17:15:01 +01:00
parent 8696ebe182
commit 5338e43f15
3 changed files with 48 additions and 0 deletions

View File

@ -321,3 +321,8 @@ downstream-perl:
image: registry.gitlab.gnome.org/gnome/libxml2
script:
- sh .gitlab-ci/downstream-perl.sh
downstream-php:
image: registry.gitlab.gnome.org/gnome/libxml2
script:
- sh .gitlab-ci/downstream-php.sh

View File

@ -38,3 +38,7 @@ RUN apt-get install -y --no-install-recommends \
libyaml-perl
RUN cpanm -n Alien::Libxml2
RUN apt-get remove -y libxml2-dev
# PHP
RUN apt-get install -y --no-install-recommends \
bison re2c libsqlite3-dev

View File

@ -0,0 +1,39 @@
#!/bin/sh
set -e
srcdir=$(pwd)
mkdir -p install
installdir="$srcdir/install"
export PKG_CONFIG_PATH="$installdir/lib/pkgconfig"
sh autogen.sh "--prefix=$installdir" --without-python
make -j$(nproc)
make install
git clone --depth 1 https://gitlab.gnome.org/GNOME/libxslt.git
cd libxslt
sh autogen.sh \
"--prefix=$installdir" \
"--with-libxml-prefix=$installdir" \
--without-python
make -j$(nproc)
make install
cd ..
git clone --depth 1 https://github.com/php/php-src.git
cd php-src
./buildconf
./configure --with-xsl --enable-soap --enable-debug
make -j$(nproc)
make TESTS=" \
ext/dom \
ext/libxml \
ext/simplexml \
ext/soap \
ext/xml \
ext/xmlreader \
ext/xmlwriter \
ext/xsl \
" test