diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 7e348802b1e6e..b0013675d065d 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -80,3 +80,33 @@ jobs: -d zend_extension=opcache.so -d opcache.protect_memory=1 -d opcache.jit_buffer_size=16M + COVERAGE_DEBUG_ZTS: + 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 --enable-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 + - name: Test + uses: ./.github/actions/test-linux + - name: Test OpCache + uses: ./.github/actions/test-linux + with: + runTestsParameters: -d zend_extension=opcache.so + - name: Upload Test Coverage to Codecov.io + if: always() + run: bash <(curl -s https://codecov.io/bash) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a8fc6bcbb70bc..7305963a38ae8 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -83,11 +83,6 @@ jobs: CFLAGS='-fsanitize=undefined,address -fno-sanitize-recover -DZEND_TRACK_ARENA_ALLOC' LDFLAGS='-fsanitize=undefined,address' timeoutInMinutes: 90 - - template: azure/coverage_job.yml - parameters: - configurationName: COVERAGE_DEBUG_ZTS - configurationParameters: '--enable-debug --disable-zts' - timeoutInMinutes: 90 - template: azure/file_cache_job.yml parameters: configurationName: DEBUG_NTS_FILE_CACHE diff --git a/azure/coverage_job.yml b/azure/coverage_job.yml deleted file mode 100644 index 20ce581fcbbd7..0000000000000 --- a/azure/coverage_job.yml +++ /dev/null @@ -1,48 +0,0 @@ -parameters: - configurationName: '' - configurationParameters: '' - runTestsParameters: '' - timeoutInMinutes: 60 - -jobs: - - job: ${{ parameters.configurationName }} - timeoutInMinutes: ${{ parameters.timeoutInMinutes }} - pool: - vmImage: 'ubuntu-20.04' - steps: - - 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())