Add cppcoveralls to CI

- closes https://github.com/assimp/assimp/issues/3656
kimkulling-issue_2656_add_cppcoverall
Kim Kulling 2021-04-26 20:46:52 +02:00 committed by GitHub
parent 21d7085be6
commit 525863ac26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 3 deletions

View File

@ -13,7 +13,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
name: [ubuntu-latest-g++, macos-latest-clang++, windows-latest-cl.exe, ubuntu-latest-clang++, ubuntu-gcc-hunter, macos-clang-hunter, windows-msvc-hunter] name: [ubuntu-latest-g++, macos-latest-clang++, windows-latest-cl.exe, ubuntu-latest-clang++, ubuntu-gcc-hunter, macos-clang-hunter, windows-msvc-hunter, ubuntu-latest-gcov]
# For Windows msvc, for Linux and macOS let's use the clang compiler, use gcc for Linux. # For Windows msvc, for Linux and macOS let's use the clang compiler, use gcc for Linux.
include: include:
- name: windows-latest-cl.exe - name: windows-latest-cl.exe
@ -41,6 +41,10 @@ jobs:
- name: windows-msvc-hunter - name: windows-msvc-hunter
os: windows-latest os: windows-latest
toolchain: ninja-vs-win64-cxx17 toolchain: ninja-vs-win64-cxx17
- name: ubuntu-latest-gcov
os: ubuntu-latest
cxx: g++
cc: gcc
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -67,8 +71,14 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
repository: cpp-pm/polly repository: cpp-pm/polly
path: cmake/polly path: cmake/polly
- name: Install cppcov for c++
if: endfWith(matrix.name,'latest-gcov')
run: |
pip install --user cpp-coveralls
run: echo "::set-output name=args::-ASSIMP_COVERALLS=1"
- name: Remove contrib directory for Hunter builds - name: Remove contrib directory for Hunter builds
if: contains(matrix.name, 'hunter') if: contains(matrix.name, 'hunter')
uses: JesseTG/rm@v1.0.2 uses: JesseTG/rm@v1.0.2