I actually use this snippet to preinstall the desired compiler version inside the travis virtual machine
- os: linux compiler: clang addons: apt: sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5'] packages: ['clang-3.5'] env: COMPILER=clang++-3.5
This has the advantage of starting assembly inside the machine without using sudo , which leads to faster assembly.
How to use this to install cmake 2.8.12 (or later) on both linux and osx when using travis? I tried
- os: linux compiler: clang addons: apt: sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5', 'add-apt-repository'] packages: ['clang-3.5', 'ppa:kalakris/cmake'] env: COMPILER=clang++-3.5
without success
source share