travis: add sanitizer build
authorMichael Wallner <mike@php.net>
Tue, 29 Sep 2020 11:33:58 +0000 (13:33 +0200)
committerMichael Wallner <mike@php.net>
Tue, 29 Sep 2020 11:33:58 +0000 (13:33 +0200)
.travis.yml

index 7ad1566bb881e58ff91516f1e2e60566652b81a0..d3d2c6277b5f63bd56ba105239ff8ad774db6397 100644 (file)
@@ -19,6 +19,7 @@ env:
  - BUILD=Release SASL=false
  - BUILD=Debug SASL=true PREFIX=/opt PORT=11212 MC_VERSION=1.5.22
  - BUILD=Debug SASL=false PREFIX=/opt PORT=11212 MC_VERSION=1.6.6
+ - BUILD=Debug SASL=true PREFIX=/opt PORT=11212 SANITIZERS=address;undefined
 
 #before_install:
 install:
@@ -41,7 +42,7 @@ before_script:
 
 script:
  - cd build
- - cmake -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=${BUILD} -DENABLE_SASL=${SASL} -DMEMCACHED_BINARY=${PREFIX:-/usr}/bin/memcached ..
+ - cmake -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=${BUILD} -DENABLE_SASL=${SASL} -DENABLE_SANITIZERS=${SANITIZERS} -DMEMCACHED_BINARY=${PREFIX:-/usr}/bin/memcached ..
  - make -j2
  - make test VERBOSE=1
  - make install DESTDIR=.