Skip to content

Commit b7f0950

Browse files
committed
Add test coverage job
1 parent 9405f43 commit b7f0950

File tree

3 files changed

+31
-53
lines changed

3 files changed

+31
-53
lines changed

.github/workflows/nightly.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,34 @@ jobs:
153153
-d opcache.jit=1205
154154
- name: Verify generated files are up to date
155155
uses: ./.github/actions/verify-generated-files
156+
COVERAGE_DEBUG_NTS:
157+
runs-on: ubuntu-20.04
158+
steps:
159+
- name: git checkout
160+
uses: actions/checkout@v2
161+
- name: Create mssql container
162+
uses: ./.github/actions/mssql
163+
- name: apt
164+
uses: ./.github/actions/apt-x64
165+
- name: Install gcovr
166+
run: sudo -H pip install gcovr
167+
- name: ./configure
168+
uses: ./.github/actions/configure-x64
169+
with:
170+
configurationParameters: --enable-debug --disable-zts --enable-gcov
171+
- name: make
172+
run: make -j$(/usr/bin/nproc) >/dev/null
173+
- name: make install
174+
uses: ./.github/actions/install-linux
175+
- name: Setup
176+
uses: ./.github/actions/setup-x64
177+
# We only test with OpCache, the difference in coverage is negligible
178+
- name: Test OpCache
179+
uses: ./.github/actions/test-linux
180+
with:
181+
runTestsParameters: >-
182+
-d zend_extension=opcache.so
183+
-d opcache.enable_cli=1
184+
- name: Upload Test Coverage to Codecov.io
185+
if: always()
186+
run: bash <(curl -s https://codecov.io/bash)

azure-pipelines.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,6 @@ jobs:
4949
CFLAGS='-fsanitize=undefined,address -fno-sanitize-recover -DZEND_TRACK_ARENA_ALLOC'
5050
LDFLAGS='-fsanitize=undefined,address'
5151
timeoutInMinutes: 90
52-
- template: azure/coverage_job.yml
53-
parameters:
54-
configurationName: COVERAGE_DEBUG_ZTS
55-
configurationParameters: '--enable-debug --disable-zts'
56-
timeoutInMinutes: 90
5752
- template: azure/file_cache_job.yml
5853
parameters:
5954
configurationName: DEBUG_NTS_FILE_CACHE

azure/coverage_job.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)