Attempt to update CI environment
This commit is contained in:
parent
081ccb2bde
commit
179ee52801
4 changed files with 89 additions and 26 deletions
5
.travis-ci/after_success.sh
Executable file
5
.travis-ci/after_success.sh
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ x$COVERALLS == xyes ]; then
|
||||||
|
coveralls --exclude php --exclude 3rdparty
|
||||||
|
fi
|
22
.travis-ci/install.sh
Executable file
22
.travis-ci/install.sh
Executable file
|
@ -0,0 +1,22 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
apt-get update -qq
|
||||||
|
apt-get install -qq \
|
||||||
|
autoconf \
|
||||||
|
automake \
|
||||||
|
build-essential \
|
||||||
|
check \
|
||||||
|
clang \
|
||||||
|
graphviz-dev \
|
||||||
|
libjemalloc-dev \
|
||||||
|
libpcre3-dev \
|
||||||
|
libtool \
|
||||||
|
pkg-config
|
||||||
|
|
||||||
|
if [ x$COVERALLS == xyes ]; then
|
||||||
|
pip install cpp-coveralls
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ x$VALGRIND == xyes ]; then
|
||||||
|
apt-get install valgrind
|
||||||
|
fi
|
18
.travis-ci/script.sh
Executable file
18
.travis-ci/script.sh
Executable file
|
@ -0,0 +1,18 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -ev
|
||||||
|
|
||||||
|
./autogen.sh
|
||||||
|
./configure --enable-check $CONFIGURE_OPTION
|
||||||
|
make V=1
|
||||||
|
make install
|
||||||
|
if [ x$VALGRIND == xyes ]; then
|
||||||
|
make check
|
||||||
|
else
|
||||||
|
make check V=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# XXX: tracing memory leak, disabled for some mystery reason for automake...
|
||||||
|
#if [ x$VALGRIND == xyes && x$DEBUG == xyes ]; then
|
||||||
|
# valgrind ./tests/check_* -v --trace-children=yes --show-leak-kinds=full --leak-check=full
|
||||||
|
#fi
|
70
.travis.yml
70
.travis.yml
|
@ -1,4 +1,8 @@
|
||||||
language: c
|
language: c
|
||||||
|
sudo: required
|
||||||
|
|
||||||
|
services:
|
||||||
|
- docker
|
||||||
|
|
||||||
git:
|
git:
|
||||||
depth: 1
|
depth: 1
|
||||||
|
@ -6,35 +10,49 @@ git:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- compiler: gcc
|
- compiler: gcc
|
||||||
env: CONFIGURE_OPTION='--enable-debug --enable-gcov --with-malloc=jemalloc' COVERALLS=yes VALGRIND=no DEBUG=yes
|
env:
|
||||||
|
- CONFIGURE_OPTION='--enable-debug --enable-gcov --with-malloc=jemalloc'
|
||||||
|
- COVERALLS=yes
|
||||||
|
- VALGRIND=no
|
||||||
|
- DEBUG=yes
|
||||||
|
- CC=gcc
|
||||||
|
- CXX=g++
|
||||||
- compiler: gcc
|
- compiler: gcc
|
||||||
env: CONFIGURE_OPTION='--enable-debug --enable-gcov' COVERALLS=yes VALGRIND=yes DEBUG=yes LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/
|
env:
|
||||||
|
- CONFIGURE_OPTION='--enable-debug --enable-gcov'
|
||||||
|
- COVERALLS=yes
|
||||||
|
- VALGRIND=yes
|
||||||
|
- DEBUG=yes
|
||||||
|
- CC=gcc
|
||||||
|
- CXX=g++
|
||||||
- compiler: clang
|
- compiler: clang
|
||||||
env: CONFIGURE_OPTION='--enable-debug --enable-gcov' COVERALLS=yes VALGRIND=yes DEBUG=yes LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/
|
env:
|
||||||
allow_failures:
|
- CONFIGURE_OPTION='--enable-debug --enable-gcov'
|
||||||
- compiler: clang
|
- COVERALLS=yes
|
||||||
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'
|
- VALGRIND=yes
|
||||||
install:
|
- DEBUG=yes
|
||||||
- sudo apt-get update -qq
|
- CC=clang
|
||||||
- sudo apt-get install -qq automake pkg-config build-essential libtool automake autoconf m4 gnulib
|
- CXX=clang++
|
||||||
- sudo apt-get install -qq check libpcre3 libpcre3-dev libjemalloc-dev libjemalloc1
|
|
||||||
- sudo apt-get install -qq graphviz-dev graphviz
|
before_install:
|
||||||
- if [ "x$COVERALLS" == xyes ]; then sudo pip install cpp-coveralls; fi
|
- docker run -d
|
||||||
- if [ "x$VALGRIND" == xyes ]; then sudo apt-get install valgrind; fi
|
--name build
|
||||||
|
-v $(pwd):/travis
|
||||||
|
-e "CONFIGURE_OPTION=$CONFIGURE_OPTION"
|
||||||
|
-e "COVERALLS=$COVERALLS"
|
||||||
|
-e "VALGRIND=$VALGRIND"
|
||||||
|
-e "DEBUG=$DEBUG"
|
||||||
|
-e "CC=$CC"
|
||||||
|
-e "CXX=$CXX"
|
||||||
|
ubuntu:16.04
|
||||||
|
tail -f /dev/null
|
||||||
|
- docker ps
|
||||||
|
|
||||||
|
install:
|
||||||
|
- docker exec -t build bash -c "cd /travis && .travis-ci/install.sh"
|
||||||
|
|
||||||
before_script:
|
|
||||||
- sudo ldconfig
|
|
||||||
script:
|
script:
|
||||||
- ./autogen.sh
|
- docker exec -t build bash -c "cd /travis && .travis-ci/script.sh"
|
||||||
- ./configure --enable-check $CONFIGURE_OPTION
|
|
||||||
- make V=1
|
|
||||||
- sudo make install
|
|
||||||
- if [ "x$VALGRIND" == xyes ]; then make check ; else make check V=1; fi
|
|
||||||
# XXX: tracing memory leak, disabled for some mystery reason for automake...
|
|
||||||
# - if [ "x$VALGRIND" == xyes && "x$DEBUG" == xyes ]; then valgrind ./tests/check_* -v --trace-children=yes --show-leak-kinds=full --leak-check=full; fi
|
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- if [ x$COVERALLS == xyes ]; then coveralls --exclude php --exclude 3rdparty; fi
|
- docker exec -t build bash -c "cd /travis && .travis-ci/after_success.sh"
|
||||||
|
|
||||||
cache:
|
|
||||||
apt: true
|
|
||||||
|
|
Loading…
Reference in a new issue