Skip to content

Commit 18de4d8

Browse files
committed
Add file cache job
Use run-tests flags in azure job
1 parent 06db7d0 commit 18de4d8

File tree

2 files changed

+78
-14
lines changed

2 files changed

+78
-14
lines changed

azure-pipelines.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,26 @@ trigger:
1212
- UPGRADING.INTERNALS
1313

1414
jobs:
15-
- template: azure/job.yml
15+
- template: azure/file_cache_job.yml
1616
parameters:
17-
configurationName: DEBUG_NTS
18-
configurationParameters: '--enable-debug --disable-zts'
19-
- template: azure/job.yml
20-
parameters:
21-
configurationName: RELEASE_ZTS
22-
configurationParameters: '--disable-debug --enable-zts'
23-
- template: azure/i386/job.yml
24-
parameters:
25-
configurationName: I386_DEBUG_ZTS
26-
configurationParameters: '--enable-debug --enable-zts'
27-
- template: azure/macos/job.yml
28-
parameters:
29-
configurationName: MACOS_DEBUG_NTS
17+
configurationName: DEBUG_NTS_FILE_CACHE
3018
configurationParameters: '--enable-debug --disable-zts'
19+
# - template: azure/job.yml
20+
# parameters:
21+
# configurationName: DEBUG_NTS
22+
# configurationParameters: '--enable-debug --disable-zts'
23+
# - template: azure/job.yml
24+
# parameters:
25+
# configurationName: RELEASE_ZTS
26+
# configurationParameters: '--disable-debug --enable-zts'
27+
# - template: azure/i386/job.yml
28+
# parameters:
29+
# configurationName: I386_DEBUG_ZTS
30+
# configurationParameters: '--enable-debug --enable-zts'
31+
# - template: azure/macos/job.yml
32+
# parameters:
33+
# configurationName: MACOS_DEBUG_NTS
34+
# configurationParameters: '--enable-debug --disable-zts'
3135
- ${{ if eq(variables['Build.Reason'], 'Schedule') }}:
3236
- template: azure/job.yml
3337
parameters:

azure/file_cache_job.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
parameters:
2+
configurationName: ''
3+
configurationParameters: ''
4+
runTestsParameters: ''
5+
timeoutInMinutes: 60
6+
7+
jobs:
8+
- job: ${{ parameters.configurationName }}
9+
timeoutInMinutes: ${{ parameters.timeoutInMinutes }}
10+
pool:
11+
vmImage: 'ubuntu-18.04'
12+
steps:
13+
- template: apt.yml
14+
- template: configure.yml
15+
parameters:
16+
configurationParameters: ${{ parameters.configurationParameters }}
17+
- script: make -j$(/usr/bin/nproc) >/dev/null
18+
displayName: 'Make Build'
19+
- template: install.yml
20+
- script: |
21+
set -e
22+
sudo service mysql start
23+
mysql -uroot -proot -e "CREATE DATABASE IF NOT EXISTS test"
24+
sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';"
25+
sudo -u postgres psql -c "CREATE DATABASE test;"
26+
displayName: 'Setup'
27+
- template: test.yml
28+
parameters:
29+
configurationName: ${{ parameters.configurationName }}
30+
runTestsName: 'File Cache (prime)'
31+
runTestsParameters: >-
32+
${{ parameters.runTestsParameters }}
33+
-d zend_extension=opcache.so
34+
--file-cache-prime
35+
- template: test.yml
36+
parameters:
37+
configurationName: ${{ parameters.configurationName }}
38+
runTestsName: 'File Cache (use)'
39+
runTestsParameters: >-
40+
${{ parameters.runTestsParameters }}
41+
-d zend_extension=opcache.so
42+
--file-cache-use
43+
- template: test.yml
44+
parameters:
45+
configurationName: ${{ parameters.configurationName }}
46+
runTestsName: 'File Cache Only (prime)'
47+
runTestsParameters: >-
48+
${{ parameters.runTestsParameters }}
49+
-d zend_extension=opcache.so
50+
--file-cache-prime
51+
-d opcache.file_cache_only=1
52+
- template: test.yml
53+
parameters:
54+
configurationName: ${{ parameters.configurationName }}
55+
runTestsName: 'File Cache Only (use)'
56+
runTestsParameters: >-
57+
${{ parameters.runTestsParameters }}
58+
-d zend_extension=opcache.so
59+
--file-cache-use
60+
-d opcache.file_cache_only=1

0 commit comments

Comments
 (0)