diff --git a/.travis.yml b/.travis.yml index 9d4511ae9..dafeec8b4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,25 @@ before_script: - sudo apt-get install -qq build-essential cmake libfftw3-dev libmbedtls-dev libpcsclite-dev libboost-program-options-dev libconfig++-dev libsctp-dev colordiff language: cpp + +matrix: + include: + # works on Precise and Trusty + - os: linux + addons: + apt: + sources: + - llvm-toolchain-trusty-8 + - key_url: 'http://apt.llvm.org/llvm-snapshot.gpg.key' + packages: + - clang-format-8 + - clang-8 + env: + - MATRIX_EVAL="CC=clang-8 && CXX=clang++-8" + +before_install: + - eval "${MATRIX_EVAL}" + compiler: - gcc - clang @@ -17,6 +36,7 @@ addons: - key_url: 'http://apt.llvm.org/llvm-snapshot.gpg.key' packages: - clang-format-8 + - clang-8 script: - sudo ln -s /usr/bin/clang-format-diff-8 /usr/bin/clang-format-diff