From 98dbaaf7ebe5e941dd8d271274efd17620fef489 Mon Sep 17 00:00:00 2001 From: John Bytheway Date: Sat, 25 Jan 2020 09:44:09 -0500 Subject: [PATCH] Enable UBSan in Travis CI UBSan and ASan are compatible, so enable them both in the same test run. --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index b87495ff7326a..94c78b26e1892 100644 --- a/.travis.yml +++ b/.travis.yml @@ -84,8 +84,8 @@ jobs: packages: ["g++-8", "g++-8-multilib", "libc6-dbg", "libc6-dbg:i386", "libsdl2-dev", "libsdl2-ttf-dev", "libsdl2-image-dev", "libsdl2-mixer-dev", "astyle"] sources: *apt_sources - - env: CLANG=clang++-8 SANITIZE=address EXTRA_TEST_OPTS="~[.] ~vehicle_efficiency ~vehicle_drag ~starting_items" - name: "Clang 8 Make build with address sanitization, but long-running tests disabled" + - env: CLANG=clang++-8 SANITIZE=address,undefined EXTRA_TEST_OPTS="~[.] ~vehicle_efficiency ~vehicle_drag ~starting_items" + name: "Clang 8 Make build with sanitizers enabled, but long-running tests disabled" compiler: clang addons: &clang8 apt: