# HG changeset patch # User Matt Johnston # Date 1590508430 -28800 # Node ID f9ad4d39e388af83a41344de67c779d51e73afc5 # Parent 1051e4eea25a511e7366f57a4f03bc458b99078d Bring back -Werror and improve travis tests diff -r 1051e4eea25a -r f9ad4d39e388 .travis.yml --- a/.travis.yml Tue May 26 17:36:47 2020 +0200 +++ b/.travis.yml Tue May 26 23:53:50 2020 +0800 @@ -8,25 +8,29 @@ matrix: include: - - compiler: gcc + - name: "plain linux" + compiler: gcc env: WEXTRAFLAGS=-Werror - - env: MULTI=1 WEXTRAFLAGS=-Werror - # libtom has some warnings, so no WEXTRAFLAGS - - env: CONFIGURE_FLAGS=--enable-bundled-libtom WEXTRAFLAGS="" + - name: "multi binary" + env: MULTI=1 WEXTRAFLAGS=-Werror + - name: "bundled libtom, xenial, no writev()" + # NOWRITEV is unrelated to libtom/xenial, test here to save a job + env: CONFIGURE_FLAGS=--enable-bundled-libtom WEXTRAFLAGS=-Werror NOWRITEV=1 # can use an older distro with bundled libtom dist: xenial - - env: NOWRITEV=1 - - os: linux + - name: "linux clang" + os: linux compiler: clang - - os: osx + env: WEXTRAFLAGS=-Werror + - name: "osx" + os: osx compiler: clang - env: WEXTRAFLAGS="" - + # OS X says daemon() and utmp are deprecated + env: WEXTRAFLAGS="-Wno-deprecated-declarations -Werror" # 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 CXX=clang++ + - name: "fuzzing" + env: DO_FUZZ=1 CONFIGURE_FLAGS="--enable-fuzz --disable-harden --enable-bundled-libtom" WEXTRAFLAGS=-Werror LDFLAGS=-fsanitize=address EXTRACFLAGS=-fsanitize=address CXX=clang++ compiler: clang - # sanitizers need ptrace which is privileged https://github.com/travis-ci/travis-ci/issues/9033 - sudo: required # container-based builds addons: