|
| 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