]> granicus.if.org Git - php/commitdiff
Run the opcache-only configuration only for scheduled builds
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 8 Sep 2020 14:29:01 +0000 (16:29 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 8 Sep 2020 14:29:01 +0000 (16:29 +0200)
The opcache-only configuration has very little signal (i.e. it is
very rare that it fails while non-opcache and opcache+jit both
pass). Switch it to run only for nightly builds, so we get faster
results on normal builds.

azure/macos/job.yml
azure/tests.yml

index 07dd6d48034a0a2af08a74b3b33249dbe073ae37..39fe19268b9fd504bae7dade1455c56ebfb38a84 100644 (file)
@@ -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:
index 6142623398c5b1f570baa778754062f4d64bbe68..7cbd1e56360b40f44798342d9d9f9a19dcccf2d3 100644 (file)
@@ -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: