mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
added coveralls to gh-actions
This commit is contained in:
parent
fc14a3298e
commit
3becb7cd84
17
.github/workflows/build_and_test.yml
vendored
17
.github/workflows/build_and_test.yml
vendored
@ -10,6 +10,7 @@ on:
|
||||
env:
|
||||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
||||
BUILD_TYPE: Release
|
||||
COVERALLS_PULL_REQUEST: ${{ github.event.number }}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@ -52,11 +53,11 @@ jobs:
|
||||
else
|
||||
cmake -B build
|
||||
fi
|
||||
shell: bash
|
||||
shell: bash
|
||||
- name: Build
|
||||
# Build your program with the given configuration
|
||||
run: cmake --build build --config ${{env.BUILD_TYPE}}
|
||||
shell: bash
|
||||
shell: bash
|
||||
|
||||
- name: Test
|
||||
working-directory: ${{github.workspace}}/build
|
||||
@ -64,6 +65,18 @@ jobs:
|
||||
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
|
||||
run: ctest --output-on-failure -C ${{env.BUILD_TYPE}}
|
||||
|
||||
- name: coveralls
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
run: |
|
||||
export TRAVIS_BRANCH=$GITHUB_REF_NAME && \
|
||||
export TRAVIS_JOB_ID=$GITHUB_RUN_NUMBER && \
|
||||
git clone https://github.com/CrowCpp/cpp-coveralls.git && \
|
||||
cd cpp-coveralls && \
|
||||
pip3 install . --no-input && \
|
||||
cd .. && \
|
||||
coveralls --verbose --exclude-pattern .*/http_parser_merged.h --exclude-pattern .*/TinySHA1.hpp
|
||||
shell: bash
|
||||
|
||||
#- name: Package
|
||||
# working-directory: ${{github.workspace}}/build
|
||||
# run: |
|
||||
|
Loading…
Reference in New Issue
Block a user