Browse Source

Travis: Add Clang UBSan build configuration

Turo Lamminen 8 years ago
parent
commit
7b73fe8b02
2 changed files with 7 additions and 0 deletions
  1. 4 0
      .travis.sh
  2. 3 0
      .travis.yml

+ 4 - 0
.travis.sh

@@ -26,6 +26,10 @@ function generate()
         OPTIONS="$OPTIONS -DASSIMP_ASAN=OFF"
     fi
 
+    if [ "$UBSAN" = "ON" ] ; then
+        OPTIONS="$OPTIONS -DASSIMP_UBSAN=ON"
+    fi
+
     cmake -G "Unix Makefiles" $OPTIONS
 }
 

+ 3 - 0
.travis.yml

@@ -46,6 +46,9 @@ matrix:
     - os: linux
       compiler: clang
       env: ASAN=ON
+    - os: linux
+      compiler: clang
+      env: UBSAN=ON
     - os: linux
       compiler: clang
       env: SHARED_BUILD=ON