more coverage
authorMichael Wallner <mike@php.net>
Wed, 14 Oct 2020 11:15:43 +0000 (13:15 +0200)
committerMichael Wallner <mike@php.net>
Wed, 14 Oct 2020 11:15:43 +0000 (13:15 +0200)
.cirrus.yml
.github/workflows/cmake-build-ci.gen
.github/workflows/cmake-build-ci.yml
.travis.yml
README.md

index d4a7d4b1a253ce0c016ca1e0265322708935c298..28369e0028043363cc0ca2c49b5367acfbfa00ac 100644 (file)
@@ -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" \
index c844fef3161d3b700c155107107e87b37d661ded..b0d3c5a5ca610e4210a3dd839e2e7118dd72404b 100755 (executable)
@@ -257,10 +257,14 @@ jobs:
   dbg-mac:
     name: dbg-mac (<?=DEF["macOS"]?>, <?=DEF[DEF["macOS"]]?>, <?=DEF[DEF[DEF["macOS"]]]["ver"]?>)
     runs-on: <?=DEF["macOS"]?> #
+    env:
+      CFLAGS: -O0 --coverage
+      CXXFLAGS: -O0 --coverage
     continue-on-error: true
     steps:
       - uses: actions/checkout@v2
 <?php steps(false); ?>
+      - uses: codecov/codecov-action@v1.0.13
 
   # release builds
   release:
index b45102c117484a7708abf3047406b641a80ad9e7..0d5208b6f703f89a91dd5d4f4916762b149b4b81 100644 (file)
@@ -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:
index e7316def3ec3a16aefafdd6f2d81916336223a8c..1428b20a34afd504a75b8dd2581cd093fc6793df 100644 (file)
@@ -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:
index 55afa3ec16e3c05137fc07217e80c29c6320460d..7a5aff1c7e95215b271c1792a74f0e26e4fbfdd6 100644 (file)
--- 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: