diff .travis.yml @ 1581:950913ea9976

try fix travis sanitizer
author Matt Johnston <matt@ucc.asn.au>
date Sun, 04 Mar 2018 15:18:20 +0800
parents 8c1f762c6e9d
children d17a6bab2179
line wrap: on
line diff
--- a/.travis.yml	Sun Mar 04 15:09:41 2018 +0800
+++ b/.travis.yml	Sun Mar 04 15:18:20 2018 +0800
@@ -9,6 +9,7 @@
     - os: linux
       compiler: gcc
       env: WEXTRAFLAGS=-Werror
+      sudo: false
     - env: MULTI=1 WEXTRAFLAGS=-Werror
     # libtom has some warnings, so no WEXTRAFLAGS
     - env: CONFIGURE_FLAGS=--enable-bundled-libtom WEXTRAFLAGS=""
@@ -21,12 +22,13 @@
       compiler: clang
       env: WEXTRAFLAGS=""
 
-    # TODO: fuzzing malloc wrapper doesn't replace free() in system libtomcrypt
+    # Note: the fuzzing malloc wrapper doesn't replace free() in system libtomcrypt, so need bundled.
     - env: DO_FUZZ=1 CONFIGURE_FLAGS="--enable-fuzz --disable-harden --enable-bundled-libtom" WEXTRAFLAGS="" LDFLAGS=-fsanitize=address EXTRACFLAGS=-fsanitize=address
       compiler: clang
+      # sanitizers need ptrace which is privileged https://github.com/travis-ci/travis-ci/issues/9033
+      sudo: required
 
 # container-based builds
-sudo: false
 addons:
   apt:
     packages: