Skip to content

Commit

Permalink
Merge pull request #104 from toanju/travis-clang-and-asan
Browse files Browse the repository at this point in the history
update to clang 4.0
  • Loading branch information
DFritzsche committed Oct 16, 2017
2 parents 00d583c + 5b074a9 commit 444b50f
Showing 1 changed file with 31 additions and 5 deletions.
36 changes: 31 additions & 5 deletions .travis.yml
@@ -1,29 +1,55 @@
sudo: required
dist: trusty
language: cpp

addons:
apt:
packages:
- clang-4.0
- clang-format-4.0
- libcppunit-dev
- libcunit1-dev
- libgoogle-glog-dev
- libssl-dev
sources:
- llvm-toolchain-trusty-4.0
- ubuntu-toolchain-r-test

compiler:
- gcc
- clang

env:
- FLAGS="--disable-silent-rules --enable-debug"
- FLAGS="--disable-silent-rules"

matrix:
include:
- compiler: clang
env: FLAGS="--disable-silent-rules" ASAN=true

before_install:
- sudo apt-get update -qq
- sudo apt-get install -y -qq libssl-dev libcunit1-dev libcppunit-dev libgoogle-glog-dev clang-format-3.8

install:
- if [[ "$CXX" == "clang++" ]]; then export CXX="clang++-4.0" CC="clang-4.0"; fi
- if [[ "$ASAN" == "true" ]]; then export CXXFLAGS="-g -fno-omit-frame-pointer -fsanitize=address"; export CFLAGS="$CXXFLAGS"; fi
- ./autogen.sh
env:
- FLAGS="--disable-silent-rules --enable-debug"
- FLAGS="--disable-silent-rules"

script:
- mkdir -p build
- cd build
- ../configure $FLAGS
- find .. -regex '.*\.\(hh?\|cc?\|hpp\|cpp\)$$' | xargs clang-format-3.8 -i -style=file
- find .. -regex '.*\.\(hh?\|cc?\|hpp\|cpp\)$$' | xargs clang-format-4.0 -i -style=file
- git diff --exit-code
- make -j 2
- VERBOSE=yes make -j 2 check

branches:
only:
- master
- stable

notifications:
email:
- andreas.koepsel@bisdn.de
Expand Down

0 comments on commit 444b50f

Please sign in to comment.