Skip to content

Commit 9540e70

Browse files
committed
Run the opcache-only configuration only for scheduled builds
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.
1 parent 2d1b872 commit 9540e70

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

azure/macos/job.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,12 @@ jobs:
8080
- template: test.yml
8181
parameters:
8282
configurationName: ${{ parameters.configurationName }}
83-
- template: test.yml
84-
parameters:
85-
configurationName: ${{ parameters.configurationName }}
86-
runTestsName: 'OpCache'
87-
runTestsParameters: -d zend_extension=opcache.so -d opcache.enable_cli=1 -d opcache.protect_memory=1
83+
- ${{ if eq(variables['Build.Reason'], 'Schedule') }}:
84+
- template: test.yml
85+
parameters:
86+
configurationName: ${{ parameters.configurationName }}
87+
runTestsName: 'OpCache'
88+
runTestsParameters: -d zend_extension=opcache.so -d opcache.enable_cli=1 -d opcache.protect_memory=1
8889
- ${{ if eq(variables['Build.Reason'], 'Schedule') }}:
8990
- template: test.yml
9091
parameters:

azure/tests.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ steps:
77
parameters:
88
configurationName: ${{ parameters.configurationName }}
99
runTestsParameters: ${{ parameters.runTestsParameters }}
10-
- template: test.yml
11-
parameters:
12-
configurationName: ${{ parameters.configurationName }}
13-
runTestsName: 'OpCache'
14-
runTestsParameters: >-
15-
${{ parameters.runTestsParameters }}
16-
-d zend_extension=opcache.so
10+
- ${{ if eq(variables['Build.Reason'], 'Schedule') }}:
11+
- template: test.yml
12+
parameters:
13+
configurationName: ${{ parameters.configurationName }}
14+
runTestsName: 'OpCache'
15+
runTestsParameters: >-
16+
${{ parameters.runTestsParameters }}
17+
-d zend_extension=opcache.so
1718
- ${{ if eq(variables['Build.Reason'], 'Schedule') }}:
1819
- template: test.yml
1920
parameters:

0 commit comments

Comments
 (0)