diff options
author | Matt Johnston <matt@ucc.asn.au> | 2020-05-26 23:53:50 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2020-05-26 23:53:50 +0800 |
commit | 6abf756e51f0a895225808f19787042c63bd8acd (patch) | |
tree | 587c5e489ce32e3906ace7b065103133a6f0cf4d /.travis.yml | |
parent | b4bd23b4d2a4c640880b49069e02cd598dd03416 (diff) |
Bring back -Werror and improve travis tests
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/.travis.yml b/.travis.yml index 5799fe2..478dda8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,25 +8,29 @@ dist: focal 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: |