Add lines for clang.
See: http://stackoverflow.com/questions/22111549/travis-ci-with-clang-3-4-and-c11
This commit is contained in:
parent
bc24424e8f
commit
39fecaf6e0
1 changed files with 6 additions and 0 deletions
|
@ -8,8 +8,14 @@ before_install:
|
|||
#g++4.8.1
|
||||
- if [ "$CXX" == "g++" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
|
||||
- sudo apt-get update -qq
|
||||
# clang 3.4
|
||||
- if [ "$CXX" == "clang++" ]; then sudo add-apt-repository -y ppa:h-rayflood/llvm; fi
|
||||
- sudo apt-get update -qq
|
||||
|
||||
install:
|
||||
# g++4.8.1
|
||||
- if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi
|
||||
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8"; fi
|
||||
# clang 3.4
|
||||
- if [ "$CXX" == "clang++" ]; then sudo apt-get install --allow-unauthenticated -qq clang-3.4; fi
|
||||
- if [ "$CXX" == "clang++" ]; then export CXX="clang++-3.4"; fi
|
||||
|
|
Loading…
Reference in a new issue