From 650ebdd8bab9c6d49a329507cd6ecde9e0605b11 Mon Sep 17 00:00:00 2001 From: Sebastien Vincent Date: Fri, 18 Aug 2017 21:26:57 +0200 Subject: [PATCH] Attempt to use clang-3.8 to compile on Linux for TravisCI. --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 8245733f..38a0dde1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,6 +20,7 @@ addons: - libminiupnpc-dev - gcc - g++ + - clang-3.8 - help2man before_install: - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi @@ -28,6 +29,8 @@ before_install: - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew list openssl &>/dev/null || brew install openssl ; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew list miniupnpc &>/dev/null || brew install miniupnpc ; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew list help2man &>/dev/null || brew install help2man ; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.8 90 ; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.8 90 ; fi cache: apt: true script: scons install apps samples