1parameters: 2 configurationName: '' 3 configurationParameters: '' 4 5jobs: 6 - job: ${{ parameters.configurationName }} 7 pool: 8 vmImage: 'ubuntu-20.04' 9 steps: 10 - template: apt.yml 11 - script: | 12 ./buildconf --force 13 export CFLAGS=-m32 14 export CXXFLAGS=-m32 15 export LDFLAGS=-L/usr/lib/i386-linux-gnu 16 export PKG_CONFIG=/usr/bin/i686-linux-gnu-pkg-config 17 ./configure ${{ parameters.configurationParameters }} \ 18 --enable-option-checking=fatal \ 19 --prefix=/usr \ 20 --enable-phpdbg \ 21 --enable-fpm \ 22 --enable-intl \ 23 --with-pdo-mysql=mysqlnd \ 24 --with-mysqli=mysqlnd \ 25 --with-pgsql \ 26 --with-pdo-pgsql \ 27 --with-pdo-sqlite \ 28 --without-pear \ 29 --enable-gd \ 30 --with-jpeg \ 31 --with-webp \ 32 --with-freetype \ 33 --with-xpm \ 34 --enable-exif \ 35 --with-zip \ 36 --with-zlib \ 37 --with-zlib-dir=/usr \ 38 --enable-soap \ 39 --enable-xmlreader \ 40 --with-xsl \ 41 --with-tidy \ 42 --with-xmlrpc \ 43 --enable-sysvsem \ 44 --enable-sysvshm \ 45 --enable-shmop \ 46 --enable-pcntl \ 47 --with-readline \ 48 --enable-mbstring \ 49 --with-curl \ 50 --with-gettext \ 51 --enable-sockets \ 52 --with-bz2 \ 53 --with-openssl \ 54 --with-gmp \ 55 --enable-bcmath \ 56 --enable-calendar \ 57 --enable-ftp \ 58 --with-pspell=/usr \ 59 --with-kerberos \ 60 --enable-sysvmsg \ 61 --with-ffi \ 62 --enable-zend-test \ 63 --with-mhash \ 64 --with-sodium \ 65 --enable-werror \ 66 --with-config-file-path=/etc \ 67 --with-config-file-scan-dir=/etc/php.d 68 displayName: 'Configure Build' 69 - script: make -j$(/usr/bin/nproc) >/dev/null 70 displayName: 'Make Build' 71 - script: | 72 set -e 73 sudo make install 74 sudo mkdir /etc/php.d 75 sudo chmod 777 /etc/php.d 76 echo mysqli.default_socket=/var/run/mysqld/mysqld.sock > /etc/php.d/mysqli.ini 77 echo pdo_mysql.default_socket=/var/run/mysqld/mysqld.sock > /etc/php.d/pdo_mysql.ini 78 echo opcache.enable_cli=1 >> /etc/php.d/opcache.ini 79 echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini 80 displayName: 'Install Build' 81 - script: | 82 set -e 83 sudo service mysql start 84 mysql -uroot -proot -e "CREATE DATABASE IF NOT EXISTS test" 85 #sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';" 86 #sudo -u postgres psql -c "CREATE DATABASE test;" 87 displayName: 'Setup' 88 - template: test.yml 89 parameters: 90 configurationName: ${{ parameters.configurationName }} 91 - template: test.yml 92 parameters: 93 configurationName: ${{ parameters.configurationName }} 94 runTestsName: 'OpCache' 95 runTestsParameters: -d zend_extension=opcache.so 96