2015-12-10 23:16:37 +01:00
|
|
|
sudo: false
|
2017-06-16 16:51:33 +02:00
|
|
|
dist: trusty
|
2015-12-10 23:16:37 +01:00
|
|
|
|
2014-03-21 21:25:44 +01:00
|
|
|
language: c
|
2015-12-10 23:16:37 +01:00
|
|
|
|
2014-03-21 21:25:44 +01:00
|
|
|
compiler:
|
|
|
|
- gcc
|
2017-06-16 16:51:33 +02:00
|
|
|
- clang-3.8
|
2015-12-10 23:16:37 +01:00
|
|
|
|
2016-02-20 23:05:34 +01:00
|
|
|
branches:
|
2017-06-16 16:51:33 +02:00
|
|
|
only:
|
|
|
|
- master
|
2017-07-20 16:39:28 +02:00
|
|
|
- coveralls-text
|
2016-02-20 23:05:34 +01:00
|
|
|
|
2015-12-10 23:16:37 +01:00
|
|
|
env:
|
2017-06-16 16:51:33 +02:00
|
|
|
- RUNTIME=libicu
|
|
|
|
- RUNTIME=libidn2
|
|
|
|
- RUNTIME=libidn
|
2018-11-06 13:27:09 +01:00
|
|
|
- RUNTIME=no
|
2015-12-10 23:16:37 +01:00
|
|
|
|
|
|
|
addons:
|
2017-06-16 16:51:33 +02:00
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- automake
|
|
|
|
- autoconf
|
|
|
|
- autopoint
|
|
|
|
- libtool
|
|
|
|
- gtk-doc-tools
|
|
|
|
- gettext
|
|
|
|
- libidn11-dev
|
|
|
|
- libidn2-0-dev
|
|
|
|
- libicu-dev
|
|
|
|
- libunistring-dev
|
|
|
|
- lcov
|
|
|
|
- clang-3.8
|
|
|
|
- llvm-3.8-dev
|
|
|
|
- llvm-dev
|
2017-07-09 20:31:01 +02:00
|
|
|
- valgrind
|
2015-12-10 23:16:37 +01:00
|
|
|
|
2014-06-19 13:17:28 +02:00
|
|
|
script:
|
2018-04-30 11:52:34 +02:00
|
|
|
- set -e
|
2019-04-16 14:42:34 +02:00
|
|
|
- sed -i 's/dist-lzip//g' configure.ac
|
2014-06-19 13:17:28 +02:00
|
|
|
- ./autogen.sh
|
2018-03-23 12:14:27 +01:00
|
|
|
# CFI doesn't work out on Ubuntu 14.04 (Trusty). They don't include LLVMgold.so for clang-3.8.
|
2017-06-16 16:51:33 +02:00
|
|
|
# clang-3.4 doesn't know CFI yet.
|
|
|
|
# The only chance with Travis-CI is to switch to docker and use Ubuntu 16.04 or whatever.
|
|
|
|
# - if [[ $CC == "gcc" ]]; then CFI=""; else CFI="--enable-cfi"; fi
|
2017-07-09 20:31:01 +02:00
|
|
|
- if [[ $CC == "clang-3.8" ]]; then UBSAN="--enable-ubsan"; fi
|
|
|
|
- ./configure $CFI --enable-asan $UBSAN && make -j4 && make check -j4
|
|
|
|
- ./configure $CFI --enable-runtime=$RUNTIME --enable-builtin=libicu --enable-asan $UBSAN && make clean && make -j4 && make check -j4
|
|
|
|
- ./configure $CFI --enable-runtime=$RUNTIME --enable-builtin=libidn2 --enable-asan $UBSAN && make clean && make -j4 && make check -j4
|
|
|
|
- ./configure $CFI --enable-runtime=$RUNTIME --enable-builtin=libidn --enable-asan $UBSAN && make clean && make -j4 && make check -j4
|
|
|
|
- ./configure $CFI --enable-runtime=$RUNTIME --disable-builtin --enable-asan $UBSAN && make clean && make -j4 && make check -j4
|
2017-07-09 22:09:09 +02:00
|
|
|
# libidn2 0.9.0 on Trusty has bugs, valgrinding the fuzz corpora fails
|
|
|
|
# so we use libicu here
|
|
|
|
- if [[ $RUNTIME == "libicu" ]]; then VALGRIND="--enable-valgrind-tests"; fi
|
|
|
|
- ./configure --enable-runtime=$RUNTIME --enable-builtin=libicu --enable-gtk-doc $VALGRIND && make clean && make -j4 && make check -j4 || cat fuzz/*_fuzzer.log
|
2014-06-19 13:17:28 +02:00
|
|
|
- make distcheck
|
2016-09-27 11:48:27 +02:00
|
|
|
- if [[ $CC == "gcc" && $RUNTIME == "libicu" ]]; then ./.travis_coveralls.sh; fi
|