diff --git a/.coveralls.yml b/.coveralls.yml index 6cd8da205..e0ed25152 100644 --- a/.coveralls.yml +++ b/.coveralls.yml @@ -1,4 +1,4 @@ -service_name: drone-io +service_name: gh-actions gcov_options: \-lp include: - include diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index f9fcd0661..398b0b0b8 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -10,6 +10,8 @@ on: env: # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) BUILD_TYPE: Release + COVERALLS_PULL_REQUEST: ${{ github.event.number }} + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} jobs: build: @@ -52,11 +54,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 +66,19 @@ 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: Coverage Report + if: matrix.os == 'ubuntu-latest' + run: | + export CI_BRANCH=${GITHUB_BASE_REF:-${GITHUB_REF#refs/heads/}} + echo "CI_BRANCH=$CI_BRANCH" >> $GITHUB_ENV && \ + 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: | diff --git a/README.md b/README.md index 73e84c53c..50b83715c 100644 --- a/README.md +++ b/README.md @@ -2,14 +2,13 @@

A Fast and Easy to use microframework for the web.

-Build Status +Build Status Coverage Status Documentation Gitter Open Collective

- ## Description Crow is a C++ framework for creating HTTP or Websocket web services. It uses routing similar to Python's Flask which makes it easy to use. It is also extremely fast, beating multiple existing C++ frameworks as well as non C++ frameworks. diff --git a/mkdocs.yml b/mkdocs.yml index 8024a1259..2755c3348 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -108,4 +108,4 @@ extra_css: - 'stylesheets/latofonts.css' - 'stylesheets/extra.css' -copyright: 'Copyright © 2020-2022 CrowCpp' +copyright: 'Copyright © 2020-2023 CrowCpp'