-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (31 loc) · 1.11 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
language: cpp
# we need a newer cmake
dist: trusty
sudo: required
compiler:
- clang
- gcc
matrix:
allow_failures:
# FIXME: what the hell is going on here?
- compiler: gcc
env:
global:
- DYNINST=DyninstAPI-9.1.0
- DYNINSTAPI_RT_LIB=$HOME/dyninst/lib/libdyninstAPI_RT.so
- LD_LIBRARY_PATH=$HOME/dyninst/lib
cache:
apt: true
directories:
- $HOME/dyninst
before_install:
- sudo apt-get -qq update
- sudo apt-get -y install libiberty-dev libboost-all-dev libelf-dev
- test -d $HOME/dyninst/include || wget -N http://www.paradyn.org/release9.1.0/$DYNINST.tgz
- test -d $HOME/dyninst/include || tar xf $DYNINST.tgz
install:
- test -d $HOME/dyninst/include || (mkdir $DYNINST/work; cd $DYNINST/work; cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/dyninst -DCMAKE_C_COMPILER=gcc
-DCMAKE_CXX_COMPILER=g++ -DCMAKE_CXX_FLAGS="-D_GLIBCXX_USE_CXX11_ABI=0" -DUSE_GNU_DEMANGLER=1)
- test -d $HOME/dyninst/include || make -j3 -C $DYNINST/work install
script:
- CXXFLAGS="-Werror -isystem $HOME/dyninst/include" LDFLAGS="-L$HOME/dyninst/lib" make test run