Skip to content

Commit

Permalink
Merge pull request #2488 from nyalldawson/clang
Browse files Browse the repository at this point in the history
[travis] Use newer clang 3.7 for linux builds
  • Loading branch information
m-kuhn committed Nov 20, 2015
2 parents 00ea968 + 54cf64b commit c780184
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ci/travis/linux/before_install.sh
@@ -1,9 +1,14 @@
export DEBIAN_FRONTEND=noninteractive

wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.7 main' -y

sudo add-apt-repository ppa:ubuntugis/ppa -y
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable -y # For postgresql-9.1-postgis-2.1
sudo add-apt-repository ppa:grass/grass-stable -y
sudo add-apt-repository ppa:smspillaz/cmake-3.0.2 -y
sudo add-apt-repository ppa:kedazo/doxygen-updates-precise -y # For doxygen 1.8.8
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get update -qq
sudo apt-get install --force-yes --no-install-recommends --no-install-suggests \
bison \
Expand Down Expand Up @@ -54,5 +59,11 @@ sudo apt-get install --force-yes --no-install-recommends --no-install-suggests \
xfonts-scalable \
xvfb \
postgresql-9.1-postgis-2.1/precise # from ubuntugis-unstable, not pgdg

#update clang
sudo apt-get install --force-yes llvm-3.7 llvm-3.7-dev clang-3.7 libstdc++-4.9-dev
export CXX="clang++-3.7"
export CC="clang-3.7"

cmake --version
clang --version
2 changes: 2 additions & 0 deletions ci/travis/linux/install.sh
@@ -1,5 +1,7 @@
mkdir build
cd build
export CXX="clang++-3.7"
export CC="clang-3.7"
cmake -DWITH_SERVER=ON \
-DWITH_STAGED_PLUGINS=OFF \
-DWITH_GRASS=ON \
Expand Down

0 comments on commit c780184

Please sign in to comment.