1parameters: 2 configurationName: '' 3 configurationParameters: '' 4 5jobs: 6 - job: ${{ parameters.configurationName }} 7 pool: 8 vmImage: 'macOS-10.15' 9 steps: 10 - template: brew.yml 11 - script: | 12 export PATH="/usr/local/opt/bison/bin:$PATH" 13 export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/openssl@1.1/lib/pkgconfig" 14 export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/krb5/lib/pkgconfig" 15 export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/libffi/lib/pkgconfig" 16 export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/libxml2/lib/pkgconfig" 17 export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/libxslt/lib/pkgconfig" 18 export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/zlib/lib/pkgconfig" 19 export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/icu4c/lib/pkgconfig" 20 ./buildconf --force 21 ./configure ${{ parameters.configurationParameters }} \ 22 --enable-option-checking=fatal \ 23 --prefix=/usr/local \ 24 --disable-phpdbg \ 25 --enable-fpm \ 26 --with-pdo-mysql=mysqlnd \ 27 --with-mysqli=mysqlnd \ 28 --with-pgsql=/usr/local/opt/libpq \ 29 --with-pdo-pgsql=/usr/local/opt/libpq \ 30 --with-pdo-sqlite \ 31 --without-pear \ 32 --enable-gd \ 33 --with-jpeg \ 34 --with-webp \ 35 --with-freetype \ 36 --enable-exif \ 37 --with-zip \ 38 --with-zlib \ 39 --enable-soap \ 40 --enable-xmlreader \ 41 --with-xsl \ 42 --with-tidy=/usr/local/opt/tidyp \ 43 --with-xmlrpc \ 44 --with-libxml \ 45 --enable-sysvsem \ 46 --enable-sysvshm \ 47 --enable-shmop \ 48 --enable-pcntl \ 49 --with-readline=/usr/local/opt/readline \ 50 --enable-mbstring \ 51 --with-curl \ 52 --with-gettext=/usr/local/opt/gettext \ 53 --enable-sockets \ 54 --with-bz2=/usr/local/opt/bzip2 \ 55 --with-openssl \ 56 --with-gmp=/usr/local/opt/gmp \ 57 --with-iconv=/usr/local/opt/libiconv \ 58 --enable-bcmath \ 59 --enable-calendar \ 60 --enable-ftp \ 61 --with-pspell=/usr/local/opt/aspell \ 62 --with-kerberos \ 63 --enable-sysvmsg \ 64 --with-ffi \ 65 --enable-zend-test \ 66 --enable-intl \ 67 --with-mhash \ 68 --with-sodium \ 69 --with-config-file-path=/etc \ 70 --with-config-file-scan-dir=/etc/php.d 71 displayName: 'Configure Build' 72 - script: | 73 export PATH="/usr/local/opt/bison/bin:$PATH" 74 make -j$(sysctl -n hw.ncpu) >/dev/null 75 displayName: 'Make Build' 76 - script: | 77 sudo make install 78 displayName: 'Install Build' 79 - template: test.yml 80 parameters: 81 configurationName: ${{ parameters.configurationName }} 82 - template: test.yml 83 parameters: 84 configurationName: ${{ parameters.configurationName }} 85 runTestsName: 'OpCache' 86 runTestsParameters: -d zend_extension=opcache.so -d opcache.enable_cli=1 -d opcache.protect_memory=1 87