Workaround failing Travis clang build.
authorIlya Zhuravlev <zhuravlevilya@ya.ru>
Sun, 27 Jan 2013 20:37:20 +0000 (00:37 +0400)
committerIlya Zhuravlev <zhuravlevilya@ya.ru>
Sun, 27 Jan 2013 20:37:20 +0000 (00:37 +0400)
.travis.yml

index b7f58cbe48e1af90ca31d8d2edbffcf31882e362..2cd867295757058407dcf279804a6ec74cba1b04 100644 (file)
@@ -2,7 +2,9 @@ language: cpp
 compiler:
   - gcc
   - clang
-before_install: sudo apt-get install libirrlicht-dev cmake libbz2-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev
+before_install:
+  - if [ $CC = "clang" ]; then export PATH="/usr/bin/:$PATH"; sudo sh -c 'echo "deb http://ppa.launchpad.net/eudoxos/llvm-3.1/ubuntu precise main" >> /etc/apt/sources.list'; sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 92DE8183; sudo apt-get update; sudo apt-get install llvm-3.1; sudo apt-get install clang; fi
+  - sudo apt-get install libirrlicht-dev cmake libbz2-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev
 script: cmake . && make
 notifications:
   email: false