diff mbox

[RFC,8/8] .travis.yml: add gcc sanitizer build

Message ID 20160919155139.28371-9-alex.bennee@linaro.org
State New
Headers show

Commit Message

Alex Bennée Sept. 19, 2016, 3:51 p.m. UTC
As it seems easy to break the ThreadSanitizer build we should defend it to
ensure that fixes get applied when it breaks. We use the Ubuntu GCC PPA
to get the latest GCC goodness.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>

---
 .travis.yml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

-- 
2.9.3
diff mbox

Patch

diff --git a/.travis.yml b/.travis.yml
index f30b10e..5b1c01c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -89,6 +89,7 @@  matrix:
     - env: CONFIG=""
       os: osx
       compiler: clang
+    # Plain Trusty Build
     - env: CONFIG=""
       sudo: required
       addons:
@@ -99,3 +100,18 @@  matrix:
         - sudo apt-get build-dep -qq qemu
         - wget -O - http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar -xvJ
         - git submodule update --init --recursive
+    # Trusty + GCC sanitizers
+    - env: CONFIG="--disable-pie"
+      sudo: required
+      addons:
+      dist: trusty
+      compiler: gcc
+      before_install:
+        - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
+        - sudo apt-get update -qq
+        - sudo apt-get install -qq gcc-6
+        - sudo apt-get build-dep -qq qemu
+        - wget -O - http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar -xvJ
+        - git submodule update --init --recursive
+      before_script:
+        - ./configure --cc=gcc-6 ${CONFIG} --extra-cflags="-g3 -O0 -fsanitize=thread -fsanitize-blacklist=${TRAVIS_BUILD_DIR}/blacklist.tsan"