From 1b59502c521cc804cb712d3ee07dfbba107f2951 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 14 Oct 2020 13:15:43 +0200 Subject: [PATCH] more coverage --- .cirrus.yml | 6 ++++-- .github/workflows/cmake-build-ci.gen | 4 ++++ .github/workflows/cmake-build-ci.yml | 4 ++++ .travis.yml | 5 ++++- README.md | 10 +++++----- 5 files changed, 21 insertions(+), 8 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index d4a7d4b1..28369e00 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -38,9 +38,9 @@ task: prepare_script: | mkdir build chown nobody build - chsh -s /bin/sh nobody + pw user mod -s /bin/sh -d $(pwd)/build nobody configure_script: | - sudo -E -u nobody cmake -S . -B build + sudo -E -u nobody CFLAGS="-O0 --coverage" CXXFLAGS="-O0 --coverage" cmake -S . -B build build_script: | sudo -E -u nobody make -C build -j2 all test_script: | @@ -48,6 +48,8 @@ task: install_script: | sudo -E -u nobody make -C build install DESTDIR=/tmp on_success: + codecov_script: | + bash <(curl -s https://codecov.io/bash) gitter_success_script: | curl -sS "${gitter}" \ --data-urlencode "level=info" \ diff --git a/.github/workflows/cmake-build-ci.gen b/.github/workflows/cmake-build-ci.gen index c844fef3..b0d3c5a5 100755 --- a/.github/workflows/cmake-build-ci.gen +++ b/.github/workflows/cmake-build-ci.gen @@ -257,10 +257,14 @@ jobs: dbg-mac: name: dbg-mac (, , ) runs-on: # + env: + CFLAGS: -O0 --coverage + CXXFLAGS: -O0 --coverage continue-on-error: true steps: - uses: actions/checkout@v2 + - uses: codecov/codecov-action@v1.0.13 # release builds release: diff --git a/.github/workflows/cmake-build-ci.yml b/.github/workflows/cmake-build-ci.yml index b45102c1..0d5208b6 100644 --- a/.github/workflows/cmake-build-ci.yml +++ b/.github/workflows/cmake-build-ci.yml @@ -224,6 +224,9 @@ jobs: dbg-mac: name: dbg-mac (macos-10.15, clang, apple) runs-on: macos-10.15 # + env: + CFLAGS: -O0 --coverage + CXXFLAGS: -O0 --coverage continue-on-error: true steps: - uses: actions/checkout@v2 @@ -274,6 +277,7 @@ jobs: - name: Failed tests log if: ${{ failure() }} run: cat build/Testing/Temporary/LastTest.log || true + - uses: codecov/codecov-action@v1.0.13 # release builds release: diff --git a/.travis.yml b/.travis.yml index e7316def..1428b20a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,7 @@ addons: - libsasl2-dev env: - - CMAKE_BUILD_TYPE=Debug BUILD_TESTING=true ENABLE_SASL=true + - CMAKE_BUILD_TYPE=Debug BUILD_TESTING=true ENABLE_SASL=true CFLAGS="-O0 --coverage" CXXFLAGS="-O0 --coverage" install: - | @@ -45,6 +45,9 @@ script: after_failure: - cat Testing/Temporary/LastTest.log || true +after_success: + - bash <(curl -s https://codecov.io/bash) + notifications: webhooks: urls: diff --git a/README.md b/README.md index 55afa3ec..7a5aff1c 100644 --- a/README.md +++ b/README.md @@ -42,11 +42,11 @@ Enable the `BUILD_TESTING` setting for a build and run `make test`. CI/Test results are available at: -| Provider | Status | OS | Arch | Compiler | -|--------------|---------------------|--------------|-------|------------| -| [Travis CI] | ![Travis CI Badge] | Linux | arm64 | GNU | -| [Cirrus CI] | ![Cirrus CI Badge] | FreeBSD | amd64 | Clang | -| [GH Actions] | ![GH Actions Badge] | Linux, MacOS | amd64 | GNU, Clang | +| Provider | Status | OS | Compiler | Arch | +|--------------|---------------------|--------------|------------|-----------------------| +| [Travis CI] | ![Travis CI Badge] | Linux | GNU | arm64, ppc64le, s390x | +| [Cirrus CI] | ![Cirrus CI Badge] | FreeBSD | Clang | amd64 | +| [GH Actions] | ![GH Actions Badge] | Linux, MacOS | GNU, Clang | amd64 | Additional project metrics: -- 2.30.2