summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2022-11-23 21:39:31 +0100
committerMitya Selivanov <automainint@guattari.tech>2022-11-23 21:39:31 +0100
commite6e08719392318a643dc2d8243fdf84e6534c647 (patch)
tree029ba8c5ccf0288ff0fa4980a2c5b275d61c225a /.github/workflows
parentfda748ade9285c61cc681f700d0536ca0cf8b0d5 (diff)
downloadkit-e6e08719392318a643dc2d8243fdf84e6534c647.zip
Remove codecov
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/code_coverage.yml78
1 files changed, 0 insertions, 78 deletions
diff --git a/.github/workflows/code_coverage.yml b/.github/workflows/code_coverage.yml
deleted file mode 100644
index 3179660..0000000
--- a/.github/workflows/code_coverage.yml
+++ /dev/null
@@ -1,78 +0,0 @@
-name: Code coverage
-
-on:
- schedule:
- - cron: '0 0 */16 * *'
- workflow_dispatch:
-
-env:
- BUILD_TYPE: Debug
-
-jobs:
- build:
- strategy:
- matrix:
- os: [ ubuntu-latest, macos-latest, windows-2019 ]
-
- runs-on: ${{ matrix.os }}
-
- steps:
- - uses: actions/checkout@v2
-
- - name: Install gcovr
- if: runner.os != 'Windows'
- run: |
- python3 -m pip install gcovr==5.0
-
- - name: Install OpenCppCoverage
- if: runner.os == 'Windows'
- shell: bash
- run: |
- choco install opencppcoverage
- echo "C:/Program Files/OpenCppCoverage" >> $GITHUB_PATH
-
- - name: Build
- if: runner.os != 'Windows'
- run: |
- cmake -D CMAKE_BUILD_TYPE=$BUILD_TYPE -B build -S .
- cmake --build build --config $BUILD_TYPE
-
- - name: Build with Visual Studio
- if: runner.os == 'Windows'
- shell: bash
- run: |
- cmake -B build -S .
- cmake --build build --config $BUILD_TYPE
-
- - name: Run tests
- if: runner.os != 'Windows'
- working-directory: ${{ github.workspace }}/build
- run: |
- ctest -V -C $BUILD_TYPE
-
- - name: Generate coverage on Linux
- if: runner.os == 'Linux'
- working-directory: ${{ github.workspace }}/build
- run: |
- gcovr -j $(nproc) --delete --root ../source/ --exclude '\.\./source/test/' --print-summary --xml-pretty --xml coverage.xml .
-
- - name: Generate coverage on macOS
- if: runner.os == 'macOS'
- working-directory: ${{ github.workspace }}/build
- run: |
- gcovr -j 2 --delete --root ../source/ --exclude '\.\./source/test/' --print-summary --xml-pretty --xml coverage.xml .
-
- - name: Run tests & generate coverage on Windows
- if: runner.os == 'Windows'
- shell: bash
- working-directory: ${{ github.workspace }}/build
- run: |
- OpenCppCoverage.exe --sources source\\* --excluded_sources source\\test\\* --export_type cobertura:coverage.xml --cover_children -- ctest -V -C $BUILD_TYPE
-
- - name: Upload coverage to Codecov
- uses: codecov/codecov-action@v2
- with:
- files: ./build/coverage.xml
- flags: ${{ runner.os }}
- name: ${{ runner.os }} build
- fail_ci_if_error: true