mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0: Add test coverage job
This commit is contained in:
commit
fa6953d307
31
.github/workflows/nightly.yml
vendored
31
.github/workflows/nightly.yml
vendored
@ -153,3 +153,34 @@ jobs:
|
||||
-d opcache.jit=1205
|
||||
- name: Verify generated files are up to date
|
||||
uses: ./.github/actions/verify-generated-files
|
||||
COVERAGE_DEBUG_NTS:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: git checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Create mssql container
|
||||
uses: ./.github/actions/mssql
|
||||
- name: apt
|
||||
uses: ./.github/actions/apt-x64
|
||||
- name: Install gcovr
|
||||
run: sudo -H pip install gcovr
|
||||
- name: ./configure
|
||||
uses: ./.github/actions/configure-x64
|
||||
with:
|
||||
configurationParameters: --enable-debug --disable-zts --enable-gcov
|
||||
- name: make
|
||||
run: make -j$(/usr/bin/nproc) >/dev/null
|
||||
- name: make install
|
||||
uses: ./.github/actions/install-linux
|
||||
- name: Setup
|
||||
uses: ./.github/actions/setup-x64
|
||||
# We only test with OpCache, the difference in coverage is negligible
|
||||
- name: Test OpCache
|
||||
uses: ./.github/actions/test-linux
|
||||
with:
|
||||
runTestsParameters: >-
|
||||
-d zend_extension=opcache.so
|
||||
-d opcache.enable_cli=1
|
||||
- name: Upload Test Coverage to Codecov.io
|
||||
if: always()
|
||||
run: bash <(curl -s https://codecov.io/bash)
|
||||
|
@ -51,11 +51,6 @@ jobs:
|
||||
--enable-debug --enable-zts --enable-address-sanitizer --enable-undefined-sanitizer
|
||||
CFLAGS='-fno-sanitize-recover'
|
||||
timeoutInMinutes: 90
|
||||
- template: azure/coverage_job.yml
|
||||
parameters:
|
||||
configurationName: COVERAGE_DEBUG_ZTS
|
||||
configurationParameters: '--enable-debug --disable-zts'
|
||||
timeoutInMinutes: 90
|
||||
- template: azure/opcache_variation_job.yml
|
||||
parameters:
|
||||
configurationName: DEBUG_NTS_OPCACHE
|
||||
|
@ -1,49 +0,0 @@
|
||||
parameters:
|
||||
configurationName: ''
|
||||
configurationParameters: ''
|
||||
runTestsParameters: ''
|
||||
timeoutInMinutes: 60
|
||||
|
||||
jobs:
|
||||
- job: ${{ parameters.configurationName }}
|
||||
timeoutInMinutes: ${{ parameters.timeoutInMinutes }}
|
||||
pool:
|
||||
vmImage: 'ubuntu-20.04'
|
||||
steps:
|
||||
- template: mssql.yml
|
||||
- template: apt.yml
|
||||
- script: |
|
||||
sudo -H pip install gcovr
|
||||
displayName: 'Install gcovr'
|
||||
- template: configure.yml
|
||||
parameters:
|
||||
configurationParameters: --enable-gcov ${{ parameters.configurationParameters }}
|
||||
- script: make -j$(/usr/bin/nproc) >/dev/null
|
||||
displayName: 'Make Build'
|
||||
- template: install.yml
|
||||
- template: setup.yml
|
||||
- template: test.yml
|
||||
parameters:
|
||||
configurationName: ${{ parameters.configurationName }}
|
||||
runTestsParameters: ${{ parameters.runTestsParameters }}
|
||||
- template: test.yml
|
||||
parameters:
|
||||
configurationName: ${{ parameters.configurationName }}
|
||||
runTestsName: 'OpCache'
|
||||
runTestsParameters: >-
|
||||
${{ parameters.runTestsParameters }}
|
||||
-d zend_extension=opcache.so
|
||||
- script: bash <(curl -s https://codecov.io/bash)
|
||||
displayName: 'Upload ${{ parameters.configurationName }} Test Coverage to Codecov.io'
|
||||
condition: or(succeeded(), failed())
|
||||
- script: |
|
||||
make gcovr-xml
|
||||
mv gcovr.xml coverage.xml
|
||||
displayName: 'Generate ${{ parameters.configurationName }} Test Coverage Cobertura XML Report'
|
||||
condition: or(succeeded(), failed())
|
||||
- task: PublishCodeCoverageResults@1
|
||||
inputs:
|
||||
codeCoverageTool: 'Cobertura'
|
||||
summaryFileLocation: coverage.xml
|
||||
displayName: 'Publish ${{ parameters.configurationName }} Test Coverage'
|
||||
condition: or(succeeded(), failed())
|
Loading…
Reference in New Issue
Block a user