2014-05-17 03:26:19 -04:00
|
|
|
language: c
|
2014-05-20 10:05:07 -04:00
|
|
|
|
2014-05-17 03:26:19 -04:00
|
|
|
compiler:
|
|
|
|
- gcc
|
2014-08-13 02:29:18 -04:00
|
|
|
|
|
|
|
git:
|
|
|
|
depth: 1
|
2014-05-20 10:05:07 -04:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- compiler: gcc
|
2014-06-01 18:14:23 -04:00
|
|
|
env: CONFIGURE_OPTION='--enable-debug --enable-gcov --with-malloc=jemalloc' COVERALLS=yes VALGRIND=no DEBUG=yes
|
2014-05-21 04:29:36 -04:00
|
|
|
- compiler: gcc
|
2014-06-01 18:14:23 -04:00
|
|
|
env: CONFIGURE_OPTION='--enable-debug --enable-gcov' COVERALLS=yes VALGRIND=yes DEBUG=yes LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/
|
2015-11-12 09:06:28 -05:00
|
|
|
- compiler: clang
|
|
|
|
env: CONFIGURE_OPTION='--enable-debug --enable-gcov' COVERALLS=yes VALGRIND=yes DEBUG=yes LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/
|
2014-05-21 06:18:18 -04:00
|
|
|
- compiler: clang
|
2014-06-12 08:05:24 -04:00
|
|
|
env: ASAN_OPTIONS=symbolize=1 ASAN_SYMBOLIZER_PATH=/usr/local/clang-3.4/bin/llvm-symbolizer CFLAGS='-fsanitize=address -g -O1 -D_BSD_SOURCE=1' CXX=clang++ CXXFLAGS='-fsanitize=address -g -O1 -D_BSD_SOURCE=1'
|
2014-05-17 03:26:19 -04:00
|
|
|
install:
|
2014-05-17 04:06:05 -04:00
|
|
|
- sudo apt-get update -qq
|
2014-05-18 23:44:29 -04:00
|
|
|
- sudo apt-get install -qq automake pkg-config build-essential libtool automake autoconf m4 gnulib
|
|
|
|
- sudo apt-get install -qq check libpcre3 libpcre3-dev libjemalloc-dev libjemalloc1
|
2014-06-01 18:16:52 -04:00
|
|
|
- sudo apt-get install -qq graphviz-dev graphviz
|
2014-05-21 05:00:18 -04:00
|
|
|
- if [ "x$COVERALLS" == xyes ]; then sudo pip install cpp-coveralls; fi
|
2014-05-21 05:02:52 -04:00
|
|
|
- if [ "x$VALGRIND" == xyes ]; then sudo apt-get install valgrind; fi
|
2014-05-20 10:05:07 -04:00
|
|
|
|
2014-05-21 07:19:13 -04:00
|
|
|
before_script:
|
2014-05-21 07:22:24 -04:00
|
|
|
- sudo ldconfig
|
2014-05-17 03:26:19 -04:00
|
|
|
script:
|
2014-05-20 10:05:07 -04:00
|
|
|
- ./autogen.sh
|
2014-05-24 04:27:43 -04:00
|
|
|
- ./configure --enable-check $CONFIGURE_OPTION
|
2014-05-22 00:01:27 -04:00
|
|
|
- make V=1
|
2014-05-21 07:06:23 -04:00
|
|
|
- sudo make install
|
2014-05-22 00:01:27 -04:00
|
|
|
- if [ "x$VALGRIND" == xyes ]; then make check > /dev/null 2>&1; else make check V=1; fi
|
2014-06-12 08:05:24 -04:00
|
|
|
# XXX: tracing memory leak, disabled for some mystery reason for automake...
|
2014-06-01 06:06:12 -04:00
|
|
|
# - if [ "x$VALGRIND" == xyes && "x$DEBUG" == xyes ]; then valgrind ./tests/check_* -v --trace-children=yes --show-leak-kinds=full --leak-check=full; fi
|
2014-05-20 10:05:07 -04:00
|
|
|
|
|
|
|
after_success:
|
2014-06-01 22:23:55 -04:00
|
|
|
- if [ x$COVERALLS == xyes ]; then coveralls --exclude php --exclude 3rdparty; fi
|
2014-05-20 10:05:07 -04:00
|
|
|
|
2014-05-17 03:26:19 -04:00
|
|
|
cache:
|
|
|
|
apt: true
|