2019-05-29 23:59:36 +08:00
|
|
|
parameters:
|
|
|
|
configurationName: ''
|
|
|
|
configurationParameters: ''
|
2019-06-20 22:51:14 +08:00
|
|
|
runTestsParameters: ''
|
|
|
|
timeoutInMinutes: 60
|
2019-05-29 23:59:36 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
- job: ${{ parameters.configurationName }}
|
2019-06-20 22:51:14 +08:00
|
|
|
timeoutInMinutes: ${{ parameters.timeoutInMinutes }}
|
2019-05-29 23:59:36 +08:00
|
|
|
pool:
|
|
|
|
vmImage: 'ubuntu-latest'
|
|
|
|
steps:
|
|
|
|
- template: apt.yml
|
2019-08-28 02:54:50 +08:00
|
|
|
- template: configure.yml
|
|
|
|
parameters:
|
|
|
|
configurationParameters: ${{ parameters.configurationParameters }}
|
2019-05-29 23:59:36 +08:00
|
|
|
- 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
|
2019-08-28 23:39:39 +08:00
|
|
|
echo opcache.enable_cli=1 >> /etc/php.d/opcache.ini
|
|
|
|
echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
|
2019-05-29 23:59:36 +08:00
|
|
|
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 }}
|
2019-06-20 22:51:14 +08:00
|
|
|
runTestsParameters: ${{ parameters.runTestsParameters }}
|
2019-05-29 23:59:36 +08:00
|
|
|
- template: test.yml
|
|
|
|
parameters:
|
|
|
|
configurationName: ${{ parameters.configurationName }}
|
|
|
|
runTestsName: 'OpCache'
|
2019-06-20 22:51:14 +08:00
|
|
|
runTestsParameters: >-
|
|
|
|
${{ parameters.runTestsParameters }}
|
2019-08-28 23:39:39 +08:00
|
|
|
-d zend_extension=opcache.so
|