testing: provide coverage build for comparison
authorMichael Wallner <mike@php.net>
Tue, 13 Oct 2020 15:35:44 +0000 (17:35 +0200)
committerMichael Wallner <mike@php.net>
Tue, 13 Oct 2020 15:35:44 +0000 (17:35 +0200)
.travis.yml

index 03cf473f1afa00fd9cce279ab1cec089246be840..0b9e45e10bae5da0063f0e74cbfcb5ea9897c50b 100644 (file)
@@ -17,7 +17,7 @@ compiler:
 
 env:
  - BUILD=Release SASL=false
- - BUILD=Debug SASL=true PREFIX=/opt PORT=11212 MC_VERSION=1.5.22
+ - BUILD=Debug SASL=true PREFIX=/opt PORT=11212 MC_VERSION=1.5.22 CFLAGS="-O0 --coverage" CXXFLAGS="-O0 --coverage"
  - BUILD=Debug SASL=false PREFIX=/opt PORT=11212 MC_VERSION=1.6.6
 
 #before_install:
@@ -45,7 +45,12 @@ script:
  - make install DESTDIR=.
 
 #before_cache:
-#after_success:
+after_success:
+ - |
+   if test "$CFLAGS" = "-O0 --coverage";
+   then
+     bash <(curl -s https://codecov.io/bash)
+   fi
 
 after_failure:
  - cat Testing/Temporary/LastTest.log