php-src/azure/job.yml

44 lines
1.6 KiB
YAML
Raw Normal View History

2019-05-29 23:59:36 +08:00
parameters:
configurationName: ''
configurationParameters: ''
runTestsParameters: ''
timeoutInMinutes: 60
2019-05-29 23:59:36 +08:00
jobs:
- job: ${{ parameters.configurationName }}
timeoutInMinutes: ${{ parameters.timeoutInMinutes }}
2019-05-29 23:59:36 +08:00
pool:
vmImage: 'ubuntu-latest'
steps:
- template: apt.yml
- 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 }}
runTestsParameters: ${{ parameters.runTestsParameters }}
2019-05-29 23:59:36 +08:00
- template: test.yml
parameters:
configurationName: ${{ parameters.configurationName }}
runTestsName: 'OpCache'
runTestsParameters: >-
${{ parameters.runTestsParameters }}
2019-08-28 23:39:39 +08:00
-d zend_extension=opcache.so