forked from dyninst/dyninst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (37 loc) · 1.1 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
language: cpp
sudo: false
env:
global:
- LLVM_VERSION=3.7.0
- LD_LIBRARY_PATH=$HOME/clang-$LLVM_VERSION/lib:$LD_LIBRARY_PATH
addons:
apt:
sources:
- kubuntu-backports
- ubuntu-toolchain-r-test
- boost-latest
packages:
- binutils-dev
- libboost-system1.55-dev
- libboost-thread1.55-dev
- cmake
- libelf-dev
- g++-4.9
compiler:
- gcc
- clang
cache:
directories:
- $HOME/llvm-3.7.0
before_install:
- if [ ! -d $HOME/llvm-$LLVM_VERSION/bin ]; then
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;
tar xf llvm-$LLVM_VERSION.tar.xz --strip 1 -C $HOME/llvm-$LLVM_VERSION;
fi
script:
- if [ "$CC" == "clang" ]; then export CC=$HOME/llvm-$LLVM_VERSION/bin/clang; export CXX=$HOME/llvm-$LLVM_VERSION/bin/clang++; fi
- if [ "$CC" == "gcc" ]; then export CC=gcc-4.9; export CXX=g++-4.9; fi
- mkdir work
- cd work
- cmake ..
- make