1 # Travis CI configuration file
10 # Install autopoint on Ubuntu (needed for gettext)
17 # More configurations are configured in the matrix section
31 - llvm-toolchain-trusty-6.0
32 - ubuntu-toolchain-r-test
43 - ubuntu-toolchain-r-test
54 - llvm-toolchain-trusty-6.0
55 - ubuntu-toolchain-r-test
61 # Required for -fsanitize=undefined
62 # see https://github.com/travis-ci/travis-ci/issues/9033
68 # Ensure brew gettext is in the PATH so autopoint is found on OS X
69 - PATH="$PATH:/usr/local/opt/gettext/bin" autoreconf -sivf
70 - if [ "$CONFIG" = "normal" ] ; then CFLAGS='-Wall -Wextra -O3'; fi
71 - if [ "$CONFIG" = "c90" ] ; then CFLAGS='-std=iso9899:1990 -D_XOPEN_SOURCE=500 -Wall -Wextra -O3'; fi
72 - if [ "$CONFIG" = "stackprotect" ] ; then CFLAGS='-g -O0 -fstack-protector-all'; fi
73 - if [ "$CONFIG" = "clang6" ] ; then CFLAGS='-Wall -Wextra -O3'; export CC=clang-6.0; fi
74 - if [ "$CONFIG" = "gcc8" ] ; then CFLAGS='-Wall -Wextra -O3'; export export CC=gcc-8; fi
75 - if [ "$CONFIG" = "sanitize" ] ; then CFLAGS='-g -Wall -Wextra -fsanitize=address -fsanitize=undefined'; export CC=clang-6.0; fi
76 - ./configure --prefix="${HOME}" CFLAGS="$CFLAGS" || { tail -300 config.log; false; }
78 - make check || { tail -300 test/test-suite.log; false; }