1. Clean up CMake files for finding and linking boost and CMake files
[dyninst.git] / .travis.yml
1 language: cpp
2
3 sudo: false
4
5 env:
6     global:
7         - LLVM_VERSION=3.7.0
8         - LD_LIBRARY_PATH=$HOME/clang-$LLVM_VERSION/lib:/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH
9
10 addons:
11     apt:
12         sources:
13             - kubuntu-backports
14             - ubuntu-toolchain-r-test
15             - boost-latest
16         packages:
17             - binutils-dev
18             - libboost-system1.55-dev
19             - libboost-thread1.55-dev
20             - cmake
21             - elfutils
22             - libelf1
23             - libelf-dev
24             - g++-4.9
25
26 compiler:
27     - gcc
28     - clang
29
30 cache:
31     directories:
32         - $HOME/llvm-3.7.0
33
34 before_install:
35     - if [ ! -d $HOME/llvm-$LLVM_VERSION/bin ]; then
36         wget -O llvm-$LLVM_VERSION.tar.xz http://llvm.org/releases/$LLVM_VERSION/clang+llvm-$LLVM_VERSION-x86_64-linux-gnu-ubuntu-14.04.tar.xz;
37         tar xf llvm-$LLVM_VERSION.tar.xz --strip 1 -C $HOME/llvm-$LLVM_VERSION;
38       fi
39
40 script:
41     - if [ "$CC" == "clang" ]; then export CC=$HOME/llvm-$LLVM_VERSION/bin/clang; export CXX=$HOME/llvm-$LLVM_VERSION/bin/clang++; fi
42     - if [ "$CC" == "gcc" ]; then export CC=gcc-4.9; export CXX=g++-4.9; fi
43     - find /usr -name 'libelf.*'
44     - mkdir work
45     - cd work
46     - cmake ..
47     - make