-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
26 lines (21 loc) · 884 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
language: c
compiler: gcc
env: BUILD=autotools
matrix:
include:
- compiler: gcc
env: BUILD=cmake
- compiler: clang
env: BUILD=cmake CMAKE_OPTION="-DUSE_VALGRIND=no -DNO_UNDEFINED=no" CFLAGS=-fsanitize=address
- compiler: gcc
env: BUILD=cmake CMAKE_OPTION="-DENABLE_GCOV=yes -DUSE_VALGRIND=no" COVERALLS=yes
script:
- if [ x$BUILD == xautotools ]; then ./autogen.sh && ./configure $CONFIGURE_OPTION && make && make check; fi
- if [ x$BUILD == xcmake ]; then cmake . $CMAKE_OPTION && make && make check; fi
before_install:
- sudo pip install cpp-coveralls --use-mirrors
- sudo add-apt-repository --yes ppa:czchen/travis-ci # For cmake 2.8.9
- sudo apt-get update -qq
- sudo apt-get install -qq texinfo cmake valgrind
after_success:
- if [ x$COVERALLS == xyes ]; then coveralls --exclude src/tools --exclude contrib --exclude test ; fi