comparison .travis.yml @ 1485:3a916b945185

Use an explicit matrix instead, avoid bad clang combinations etc
author Matt Johnston <matt@ucc.asn.au>
date Sat, 10 Feb 2018 18:57:44 +0800
parents 515f37a55cd2
children cf43bbb6b8ff d54bbb645f02
comparison
equal deleted inserted replaced
1484:f68ee671bf6d 1485:3a916b945185
1 language: c 1 language: c
2 2
3 os: 3 git:
4 - linux 4 depth: 3
5 - osx
6
7 env:
8 matrix:
9 - BUNDLEDLIBTOM=--disable-bundled-libtom WEXTRAFLAGS=-Werror
10 - BUNDLEDLIBTOM=--enable-bundled-libtom
11 - MULTI=1
12 - NOWRITEV=1
13 5
14 matrix: 6 matrix:
15 exclude: 7 include:
16 # TODO: remove this when libtomcrypt has been updated by ubuntu/homebrew. 8 # subsequent matrix options use these first settings
17 # https://github.com/libtom/libtomcrypt/issues/82 9 - os: linux
18 - compiler: clang 10 compiler: gcc
19 env: BUNDLEDLIBTOM=--disable-bundled-libtom WEXTRAFLAGS=-Werror 11 env: WEXTRAFLAGS=-Werror
20 12 - env: MULTI=1 WEXTRAFLAGS=-Werror
21 compiler: 13 # libtom has some warnings, so no WEXTRAFLAGS
22 - gcc 14 - env: BUNDLEDLIBTOM=--enable-bundled-libtom WEXTRAFLAGS=""
23 - clang 15 - env: NOWRITEV=1 WEXTRAFLAGS=-Werror
16 # libtomcrypt 1.18.1 fixes clang problems, distro doesn't have that yet
17 - os: linux
18 compiler: clang
19 env: BUNDLEDLIBTOM=--enable-bundled-libtom WEXTRAFLAGS=""
20 - os: osx
21 compiler: clang
22 env: WEXTRAFLAGS=""
24 23
25 # container-based builds 24 # container-based builds
26 sudo: false 25 sudo: false
27 addons: 26 addons:
28 apt: 27 apt:
34 33
35 34
36 before_install: 35 before_install:
37 - if [ "$CC" = "clang" ]; then WEXTRAFLAGS="$WEXTRAFLAGS -Wno-error=incompatible-library-redeclaration" ; fi # workaround 36 - if [ "$CC" = "clang" ]; then WEXTRAFLAGS="$WEXTRAFLAGS -Wno-error=incompatible-library-redeclaration" ; fi # workaround
38 37
39 install:
40 - if [ "$TRAVIS_OS_NAME" = "osx" -a "$BUNDLEDLIBTOM" = "--disable-bundled-libtom" ]; then brew update > /dev/null && brew install libtomcrypt libtommath ; fi
41
42 script: 38 script:
43 - autoconf && autoheader && ./configure "$BUNDLEDLIBTOM" CFLAGS="-O2 -Wall -Wno-pointer-sign $WEXTRAFLAGS" --prefix="$HOME/inst" 39 - autoconf && autoheader && ./configure "$BUNDLEDLIBTOM" CFLAGS="-O2 -Wall -Wno-pointer-sign $WEXTRAFLAGS" --prefix="$HOME/inst"
44 - if [ "$NOWRITEV" = "1" ]; then sed -i -e s/HAVE_WRITEV/DONT_HAVE_WRITEV/ config.h ; fi 40 - if [ "$NOWRITEV" = "1" ]; then sed -i -e s/HAVE_WRITEV/DONT_HAVE_WRITEV/ config.h ; fi
45 - make -j3 41 - make -j3
46 # avoid concurrent install, osx/freebsd is racey (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208093) 42 # avoid concurrent install, osx/freebsd is racey (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208093)