commented out failing coverall task

This commit is contained in:
Gulliver 2023-06-14 09:13:04 +02:00
parent b99b4c210c
commit 985a01f587
2 changed files with 17 additions and 17 deletions

View File

@ -10,8 +10,8 @@ on:
env: env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release BUILD_TYPE: Release
COVERALLS_PULL_REQUEST: ${{ github.event.number }} #COVERALLS_PULL_REQUEST: ${{ github.event.number }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} #COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
jobs: jobs:
build: build:
@ -70,18 +70,18 @@ jobs:
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest --output-on-failure -C ${{env.BUILD_TYPE}} run: ctest --output-on-failure -C ${{env.BUILD_TYPE}}
- name: Coverage Report #- name: Coverage Report
if: matrix.os == 'ubuntu-latest' # if: matrix.os == 'ubuntu-latest'
run: | # run: |
export CI_BRANCH=${GITHUB_BASE_REF:-${GITHUB_REF#refs/heads/}} # export CI_BRANCH=${GITHUB_BASE_REF:-${GITHUB_REF#refs/heads/}}
echo "CI_BRANCH=$CI_BRANCH" >> $GITHUB_ENV && \ # echo "CI_BRANCH=$CI_BRANCH" >> $GITHUB_ENV && \
export TRAVIS_JOB_ID=$GITHUB_RUN_NUMBER && \ # export TRAVIS_JOB_ID=$GITHUB_RUN_NUMBER && \
git clone https://github.com/CrowCpp/cpp-coveralls.git && \ # git clone https://github.com/CrowCpp/cpp-coveralls.git && \
cd cpp-coveralls && \ # cd cpp-coveralls && \
pip3 install . --no-input && \ # pip3 install . --no-input && \
cd .. && \ # cd .. && \
coveralls --verbose --exclude-pattern .*/http_parser_merged.h --exclude-pattern .*/TinySHA1.hpp # coveralls --verbose --exclude-pattern .*/http_parser_merged.h --exclude-pattern .*/TinySHA1.hpp
shell: bash # shell: bash
#- name: Package #- name: Package
# working-directory: ${{github.workspace}}/build # working-directory: ${{github.workspace}}/build

View File

@ -33,13 +33,13 @@ int main()
CROW_ROUTE(app, "/json-initializer-list-constructor") CROW_ROUTE(app, "/json-initializer-list-constructor")
([] { ([] {
crow::json::wvalue r({ crow::json::wvalue r({
{"first", "Hello world!"}, /* stores a char const* hence a json::type::String */ {"first", "Hello world!"}, /* stores a char const* hence a json::type::String */
{"second", std::string("How are you today?")}, /* stores a std::string hence a json::type::String. */ {"second", std::string("How are you today?")}, /* stores a std::string hence a json::type::String. */
{"third", 54}, /* stores an int (as 54 is an int literal) hence a std::int64_t. */ {"third", 54}, /* stores an int (as 54 is an int literal) hence a std::int64_t. */
{"fourth", 54l}, /* stores a long (as 54l is a long literal) hence a std::int64_t. */ {"fourth", (int64_t)54l}, /* stores a long (as 54l is a long literal) hence a std::int64_t. */
{"fifth", 54u}, /* stores an unsigned int (as 54u is a unsigned int literal) hence a std::uint64_t. */ {"fifth", 54u}, /* stores an unsigned int (as 54u is a unsigned int literal) hence a std::uint64_t. */
{"sixth", 54ul}, /* stores an unsigned long (as 54ul is an unsigned long literal) hence a std::uint64_t. */ {"sixth", (uint64_t)54ul}, /* stores an unsigned long (as 54ul is an unsigned long literal) hence a std::uint64_t. */
{"seventh", 2.f}, /* stores a float (as 2.f is a float literal) hence a double. */ {"seventh", 2.f}, /* stores a float (as 2.f is a float literal) hence a double. */
{"eighth", 2.}, /* stores a double (as 2. is a double literal) hence a double. */ {"eighth", 2.}, /* stores a double (as 2. is a double literal) hence a double. */
{"ninth", nullptr}, /* stores a std::nullptr hence json::type::Null . */ {"ninth", nullptr}, /* stores a std::nullptr hence json::type::Null . */