mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
gitlab-ci: Add downstream job for PHP
This commit is contained in:
@@ -321,3 +321,8 @@ downstream-perl:
|
|||||||
image: registry.gitlab.gnome.org/gnome/libxml2
|
image: registry.gitlab.gnome.org/gnome/libxml2
|
||||||
script:
|
script:
|
||||||
- sh .gitlab-ci/downstream-perl.sh
|
- sh .gitlab-ci/downstream-perl.sh
|
||||||
|
|
||||||
|
downstream-php:
|
||||||
|
image: registry.gitlab.gnome.org/gnome/libxml2
|
||||||
|
script:
|
||||||
|
- sh .gitlab-ci/downstream-php.sh
|
||||||
|
@@ -38,3 +38,7 @@ RUN apt-get install -y --no-install-recommends \
|
|||||||
libyaml-perl
|
libyaml-perl
|
||||||
RUN cpanm -n Alien::Libxml2
|
RUN cpanm -n Alien::Libxml2
|
||||||
RUN apt-get remove -y libxml2-dev
|
RUN apt-get remove -y libxml2-dev
|
||||||
|
|
||||||
|
# PHP
|
||||||
|
RUN apt-get install -y --no-install-recommends \
|
||||||
|
bison re2c libsqlite3-dev
|
||||||
|
39
.gitlab-ci/downstream-php.sh
Normal file
39
.gitlab-ci/downstream-php.sh
Normal 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
|
Reference in New Issue
Block a user