Skip to content

Commit

Permalink
Merge 79006b5 into 05bb0be
Browse files Browse the repository at this point in the history
  • Loading branch information
Chih-Hsuan Yen committed Aug 25, 2018
2 parents 05bb0be + 79006b5 commit a3a4ca2
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .travis.yml
@@ -1,7 +1,7 @@
language: c

# container-based builds
sudo: required
sudo: false

git:
depth: 1
Expand All @@ -18,13 +18,15 @@ matrix:
- compiler: gcc
env: BUILD=cmake
- compiler: clang
# LSan does not work in containers https://github.com/travis-ci/travis-ci/issues/9033
sudo: true
env: BUILD=cmake CMAKE_OPTION="-DUSE_VALGRIND=no -DNO_UNDEFINED=no" CFLAGS="-fsanitize=address -fsanitize=undefined"
- compiler: gcc
env: BUILD=cmake CMAKE_OPTION="-DENABLE_GCOV=yes -DUSE_VALGRIND=no" COVERALLS=yes
- compiler: clang
env: BUILD=cmake CMAKE_OPTION="-DWITH_STATIC_SQLITE3=yes"
env: BUILD=cmake CMAKE_OPTION="-DWITH_INTERNAL_SQLITE3=ON -DCMAKE_VERBOSE_MAKEFILE=ON"
- compiler: gcc
env: BUILD=autotools CONFIGURE_OPTION="--with-static_sqlite3=yes"
env: BUILD=autotools CONFIGURE_OPTION="--with-internal-sqlite3=yes --disable-silent-rules"
- compiler: gcc
env: BUILD=cmake CMAKE_OPTION="-DWITH_SQLITE3=no"
- compiler: clang
Expand All @@ -34,14 +36,10 @@ matrix:
before_install:
- pip install --user cpp-coveralls
- P_JOBS="-j$(getconf _NPROCESSORS_ONLN)"
- yes | sudo add-apt-repository ppa:kalakris/cmake
- sudo apt-get update -qq

install: sudo apt-get install cmake

script:
- if [ x$BUILD == xautotools ]; then ./autogen.sh && ./configure $CONFIGURE_OPTION && make $P_JOBS CFLAGS="$CFLAGS -Wall -Werror" && make $P_JOBS check && make $P_JOBS release && LC_ALL=c sort data/tsi.src > data/tsi.src.sort && diff data/tsi.src data/tsi.src.sort; fi
- if [ x$BUILD == xcmake ]; then CFLAGS="$CFLAGS -Wall -Werror" cmake . $CMAKE_OPTION && make $P_JOBS && make $P_JOBS check && LC_ALL=C sort data/tsi.src > data/tsi.src.sort && diff data/tsi.src data/tsi.src.sort; fi
- if [ x$BUILD == xautotools ]; then ./autogen.sh && ./configure $CONFIGURE_OPTION && make $P_JOBS CFLAGS="$CFLAGS -Wall -Werror -Wno-unused-const-variable" && make $P_JOBS check && make $P_JOBS release && LC_ALL=c sort data/tsi.src > data/tsi.src.sort && diff data/tsi.src data/tsi.src.sort; fi
- if [ x$BUILD == xcmake ]; then CFLAGS="$CFLAGS -Wall -Werror -Wno-unused-const-variable" cmake . $CMAKE_OPTION && make $P_JOBS && make $P_JOBS check && LC_ALL=C sort data/tsi.src > data/tsi.src.sort && diff data/tsi.src data/tsi.src.sort; fi

after_success:
- if [ x$COVERALLS == xyes ]; then coveralls --exclude src/tools --exclude contrib --exclude test --exclude thirdparty --exclude-pattern '.*CMake[^/]+\.c(?:pp)?' --exclude-pattern '.*/[_A-Z0-9]+\.c(?:pp)?' --exclude-pattern '[^\.]*\.h'; fi
Expand All @@ -57,9 +55,6 @@ addons:
build_command: "make $P_JOBS"
branch_pattern: coverity_scan
apt:
sources:
# sources list: https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
- kalakris-cmake
packages:
# packages list: https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
- cmake
Expand Down

0 comments on commit a3a4ca2

Please sign in to comment.