From e0d809312b2bdddd405944f58d333421e58138b8 Mon Sep 17 00:00:00 2001 From: Niels Date: Sat, 3 Sep 2016 09:17:30 +0200 Subject: [PATCH] the cmake in apt is too old --- .travis.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 86ade12e..71aade76 100644 --- a/.travis.yml +++ b/.travis.yml @@ -187,10 +187,6 @@ matrix: - os: linux env: LLVM_VERSION=3.9.0 compiler: clang - addons: - apt: - sources: ['ubuntu-toolchain-r-test'] - packages: cmake ##################### # installation step # @@ -217,6 +213,15 @@ install: # make sure CXX is correctly set - if [[ "${COMPILER}" != "" ]]; then export CXX=${COMPILER}; fi + # install recent CMake + - | + if [[ "${LLVM_VERSION}" != "" ]]; then + LLVM_DIR=${DEPS_DIR}/llvm-${LLVM_VERSION} + travis_retry wget --quiet https://cmake.org/files/v3.6/cmake-3.6.1-Linux-x86_64.sh + ./cmake-3.6.1-Linux-x86_64.sh --prefix=${LLVM_DIR}/cmake + export PATH="${LLVM_DIR}/cmake/bin:${PATH}" + fi + # install LLVM/clang when LLVM_VERSION is set - | if [[ "${LLVM_VERSION}" != "" ]]; then