mirror of
https://github.com/php/php-src.git
synced 2025-01-10 04:54:47 +08:00
97 lines
3.2 KiB
YAML
97 lines
3.2 KiB
YAML
parameters:
|
|
configurationName: ''
|
|
configurationParameters: ''
|
|
runTestsParameters: ''
|
|
timeoutInMinutes: 60
|
|
|
|
jobs:
|
|
- job: ${{ parameters.configurationName }}
|
|
timeoutInMinutes: ${{ parameters.timeoutInMinutes }}
|
|
pool:
|
|
vmImage: 'ubuntu-latest'
|
|
steps:
|
|
- template: apt.yml
|
|
- script: |
|
|
./buildconf --force
|
|
./configure ${{ parameters.configurationParameters }} \
|
|
--enable-option-checking=fatal \
|
|
--prefix=/usr \
|
|
--enable-phpdbg \
|
|
--enable-fpm \
|
|
--with-pdo-mysql=mysqlnd \
|
|
--with-mysqli=mysqlnd \
|
|
--with-pgsql \
|
|
--with-pdo-pgsql \
|
|
--with-pdo-sqlite \
|
|
--enable-intl \
|
|
--without-pear \
|
|
--enable-gd \
|
|
--with-jpeg \
|
|
--with-webp \
|
|
--with-freetype \
|
|
--with-xpm \
|
|
--enable-exif \
|
|
--with-zip \
|
|
--with-zlib \
|
|
--with-zlib-dir=/usr \
|
|
--enable-soap \
|
|
--enable-xmlreader \
|
|
--with-xsl \
|
|
--with-tidy \
|
|
--with-xmlrpc \
|
|
--enable-sysvsem \
|
|
--enable-sysvshm \
|
|
--enable-shmop \
|
|
--enable-pcntl \
|
|
--with-readline \
|
|
--enable-mbstring \
|
|
--with-curl \
|
|
--with-gettext \
|
|
--enable-sockets \
|
|
--with-bz2 \
|
|
--with-openssl \
|
|
--with-gmp \
|
|
--enable-bcmath \
|
|
--enable-calendar \
|
|
--enable-ftp \
|
|
--with-pspell=/usr \
|
|
--with-enchant=/usr \
|
|
--with-kerberos \
|
|
--enable-sysvmsg \
|
|
--with-ffi \
|
|
--enable-zend-test \
|
|
--with-ldap \
|
|
--with-ldap-sasl \
|
|
--with-password-argon2 \
|
|
--enable-werror \
|
|
--with-config-file-path=/etc \
|
|
--with-config-file-scan-dir=/etc/php.d
|
|
displayName: 'Configure Build'
|
|
- script: make -j$(/usr/bin/nproc) >/dev/null
|
|
displayName: 'Make Build'
|
|
- script: |
|
|
sudo make install
|
|
sudo mkdir /etc/php.d
|
|
sudo chmod 777 /etc/php.d
|
|
echo mysqli.default_socket=/var/run/mysqld/mysqld.sock > /etc/php.d/mysqli.ini
|
|
echo pdo_mysql.default_socket=/var/run/mysqld/mysqld.sock > /etc/php.d/pdo_mysql.ini
|
|
echo opcache.enable_cli=1 >> /etc/php.d/opcache.ini
|
|
echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
|
|
displayName: 'Install Build'
|
|
- script: |
|
|
mysql -uroot -proot -e "CREATE DATABASE IF NOT EXISTS test"
|
|
sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';"
|
|
sudo -u postgres psql -c "CREATE DATABASE test;"
|
|
displayName: 'Setup'
|
|
- template: test.yml
|
|
parameters:
|
|
configurationName: ${{ parameters.configurationName }}
|
|
runTestsParameters: ${{ parameters.runTestsParameters }}
|
|
- template: test.yml
|
|
parameters:
|
|
configurationName: ${{ parameters.configurationName }}
|
|
runTestsName: 'OpCache'
|
|
runTestsParameters: >-
|
|
${{ parameters.runTestsParameters }}
|
|
-d zend_extension=opcache.so
|