make stackwalk build on x64
[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:$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             - libelf-dev
22             - g++-4.9
23
24 compiler:
25     - gcc
26     - clang
27
28 cache:
29     directories:
30         - $HOME/llvm-3.7.0
31
32 before_install:
33     - if [ ! -d $HOME/llvm-$LLVM_VERSION/bin ]; then
34         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;
35         tar xf llvm-$LLVM_VERSION.tar.xz --strip 1 -C $HOME/llvm-$LLVM_VERSION;
36       fi
37
38 script:
39     - if [ "$CC" == "clang" ]; then export CC=$HOME/llvm-$LLVM_VERSION/bin/clang; export CXX=$HOME/llvm-$LLVM_VERSION/bin/clang++; fi
40     - if [ "$CC" == "gcc" ]; then export CC=gcc-4.9; export CXX=g++-4.9; fi
41     - mkdir work
42     - cd work
43     - cmake ..
44     - make