Skip to content

Commit

Permalink
Fix clang
Browse files Browse the repository at this point in the history
  • Loading branch information
lipnitsk committed Dec 13, 2015
1 parent 917f941 commit faf8882
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,24 @@ dist: trusty

matrix:
include:
# Test default clang
- os: linux
compiler: clang
addons:
apt:
packages:
- valgrind

# Test clang-3.8
- env: CLANG_VERSION=3.8
# Test clang-3.6
# TODO: clang 3.7+ packages from http://llvm.org/apt do not support sanitizers yet, see https://llvm.org/bugs/show_bug.cgi?id=22757
- env: CLANG_VERSION=3.6
os: linux
addons:
apt:
packages:
- valgrind
- util-linux
- clang-3.8
- clang-3.6
- libclang-common-3.6-dev
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise
- llvm-toolchain-precise-3.6

# Test default gcc
- os: linux
- env: GCC_VERSION=4.8
os: linux
compiler: gcc
addons:
apt:
Expand All @@ -57,6 +52,10 @@ env:
before_install:
- if [ -n "$GCC_VERSION" ]; then export CXX="g++-${GCC_VERSION}" CC="gcc-${GCC_VERSION}"; fi
- if [ -n "$CLANG_VERSION" ]; then export CXX="clang++-${CLANG_VERSION}" CC="clang-${CLANG_VERSION}"; fi
- if [ "$GCC_VERSION" == "4.8" ]; then export CXX="g++" CC="gcc"; fi
- which $CXX
- which $CC
- which valgrind

install:
- pip install --user cpp-coveralls
Expand All @@ -67,7 +66,7 @@ install:
script:
- ./autogen.sh
- ./configure && make -j2 distcheck VERBOSE=1 && make clean
- ./configure --enable-valgrind-tests CFLAGS="-fsanitize=undefined -fno-sanitize-recover" CXXFLAGS="-fsanitize=undefined -fno-sanitize-recover" && make -j2 distcheck DISTCHECK_CONFIGURE_FLAGS="--enable-valgrind-tests CFLAGS=\"-fsanitize=undefined -fno-sanitize-recover\" CXXFLAGS=\"-fsanitize=undefined -fno-sanitize-recover\"" VERBOSE=1 && make clean
- if [ "$GCC_VERSION" != "4.8" ]; then ./configure --enable-valgrind-tests CFLAGS="-fsanitize=undefined -fno-sanitize-recover=undefined" CXXFLAGS="-fsanitize=undefined -fno-sanitize-recover=undefined" && make -j2 distcheck DISTCHECK_CONFIGURE_FLAGS="--enable-valgrind-tests CFLAGS=\"-fsanitize=undefined -fno-sanitize-recover=undefined\" CXXFLAGS=\"-fsanitize=undefined -fno-sanitize-recover=undefined\"" VERBOSE=1 && make clean; fi
- if [ "$CC" = "gcc" ]; then ./configure --enable-code-coverage && make -j2 && make check; fi

after_success:
Expand Down

0 comments on commit faf8882

Please sign in to comment.