diff --git a/azure/macos/job.yml b/azure/macos/job.yml index 07dd6d48034..39fe19268b9 100644 --- a/azure/macos/job.yml +++ b/azure/macos/job.yml @@ -80,11 +80,12 @@ jobs: - template: test.yml parameters: configurationName: ${{ parameters.configurationName }} - - template: test.yml - parameters: - configurationName: ${{ parameters.configurationName }} - runTestsName: 'OpCache' - runTestsParameters: -d zend_extension=opcache.so -d opcache.enable_cli=1 -d opcache.protect_memory=1 + - ${{ if eq(variables['Build.Reason'], 'Schedule') }}: + - template: test.yml + parameters: + configurationName: ${{ parameters.configurationName }} + runTestsName: 'OpCache' + runTestsParameters: -d zend_extension=opcache.so -d opcache.enable_cli=1 -d opcache.protect_memory=1 - ${{ if eq(variables['Build.Reason'], 'Schedule') }}: - template: test.yml parameters: diff --git a/azure/tests.yml b/azure/tests.yml index 6142623398c..7cbd1e56360 100644 --- a/azure/tests.yml +++ b/azure/tests.yml @@ -7,13 +7,14 @@ steps: parameters: configurationName: ${{ parameters.configurationName }} runTestsParameters: ${{ parameters.runTestsParameters }} - - template: test.yml - parameters: - configurationName: ${{ parameters.configurationName }} - runTestsName: 'OpCache' - runTestsParameters: >- - ${{ parameters.runTestsParameters }} - -d zend_extension=opcache.so + - ${{ if eq(variables['Build.Reason'], 'Schedule') }}: + - template: test.yml + parameters: + configurationName: ${{ parameters.configurationName }} + runTestsName: 'OpCache' + runTestsParameters: >- + ${{ parameters.runTestsParameters }} + -d zend_extension=opcache.so - ${{ if eq(variables['Build.Reason'], 'Schedule') }}: - template: test.yml parameters: