]> granicus.if.org Git - postgis/commitdiff
Travis: Add missing task file
authorRaúl Marín Rodríguez <rmrodriguez@carto.com>
Thu, 22 Nov 2018 15:24:41 +0000 (15:24 +0000)
committerRaúl Marín Rodríguez <rmrodriguez@carto.com>
Thu, 22 Nov 2018 15:24:41 +0000 (15:24 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@17055 b70326c6-7e19-0410-871a-916f4a2858ee

ci/travis/run_usan_clang.sh [new file with mode: 0644]

diff --git a/ci/travis/run_usan_clang.sh b/ci/travis/run_usan_clang.sh
new file mode 100644 (file)
index 0000000..4c51c0a
--- /dev/null
@@ -0,0 +1,14 @@
+#!/usr/bin/env bash
+set -e
+
+# Enable undefined behaviour sanitizer using traps
+CFLAGS_STD="-g3 -O0 -mtune=generic -fno-omit-frame-pointer -fsanitize=undefined -fsanitize-undefined-trap-on-error"
+LDFLAGS_STD="-Wl,-Bsymbolic-functions -Wl,-z,relro"
+
+/usr/local/pgsql/bin/pg_ctl -c -l /tmp/logfile start
+./autogen.sh
+
+# Build with Clang and usan flags
+# TODO: Fix topology ubsan
+./configure CC=clang CFLAGS="${CFLAGS_STD}" LDFLAGS="${LDFLAGS_STD}" --without-topology
+bash ./ci/travis/logbt -- make -j check RUNTESTFLAGS=--verbose