diff options
-rw-r--r-- | azure-pipelines.yml | 4 | ||||
-rw-r--r-- | azure/file_cache_job.yml | 60 |
2 files changed, 64 insertions, 0 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 4dec0f4027..40cfbb8232 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -87,3 +87,7 @@ jobs: configurationName: COVERAGE_DEBUG_ZTS configurationParameters: '--enable-debug --disable-zts' timeoutInMinutes: 90 + - template: azure/file_cache_job.yml + parameters: + configurationName: DEBUG_NTS_FILE_CACHE + configurationParameters: '--enable-debug --disable-zts' diff --git a/azure/file_cache_job.yml b/azure/file_cache_job.yml new file mode 100644 index 0000000000..a52b56a216 --- /dev/null +++ b/azure/file_cache_job.yml @@ -0,0 +1,60 @@ +parameters: + configurationName: '' + configurationParameters: '' + runTestsParameters: '' + timeoutInMinutes: 60 + +jobs: + - job: ${{ parameters.configurationName }} + timeoutInMinutes: ${{ parameters.timeoutInMinutes }} + pool: + vmImage: 'ubuntu-18.04' + steps: + - template: apt.yml + - template: configure.yml + parameters: + configurationParameters: ${{ parameters.configurationParameters }} + - script: make -j$(/usr/bin/nproc) >/dev/null + displayName: 'Make Build' + - template: install.yml + - script: | + set -e + sudo service mysql start + 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 }} + runTestsName: 'File Cache (prime)' + runTestsParameters: >- + ${{ parameters.runTestsParameters }} + -d zend_extension=opcache.so + --file-cache-prime + - template: test.yml + parameters: + configurationName: ${{ parameters.configurationName }} + runTestsName: 'File Cache (use)' + runTestsParameters: >- + ${{ parameters.runTestsParameters }} + -d zend_extension=opcache.so + --file-cache-use + - template: test.yml + parameters: + configurationName: ${{ parameters.configurationName }} + runTestsName: 'File Cache Only (prime)' + runTestsParameters: >- + ${{ parameters.runTestsParameters }} + -d zend_extension=opcache.so + --file-cache-prime + -d opcache.file_cache_only=1 + - template: test.yml + parameters: + configurationName: ${{ parameters.configurationName }} + runTestsName: 'File Cache Only (use)' + runTestsParameters: >- + ${{ parameters.runTestsParameters }} + -d zend_extension=opcache.so + --file-cache-use + -d opcache.file_cache_only=1 |