-
Notifications
You must be signed in to change notification settings - Fork 21
/
.travis.yml
44 lines (35 loc) · 1.67 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: c
sudo: required
before_install:
- sudo add-apt-repository ppa:dns/gnu -y
- sudo apt-get update
- sudo apt-get -y install clang-3.4 llvm-3.4 llvm-3.4-dev gcc-4.6 g++-4.6
gfortran-4.6 gcc-4.6-plugin-dev autoconf automake
build-essential libtool python python-pip python-sklearn python-pydot
python-pygraphviz python-networkx python-jinja2 python-matplotlib
google-perftools libgoogle-perftools-dev numactl dc zlib1g-dev libedit-dev
# Link the correct clang
- which clang
- sudo ln -s /usr/bin/clang /usr/lib/llvm-3.4/bin/clang
# Get dragonegg
- wget http://llvm.org/releases/3.4/dragonegg-3.4.src.tar.gz
- tar xvf dragonegg-3.4.src.tar.gz && cd dragonegg-3.4
- GCC=gcc-4.6 LLVM_CONFIG=llvm-config-3.4 make && sudo cp dragonegg.so /usr/local/lib/. && cd ..
# Install rdiscount
- rvm install 2.0.0
- rvm use 2.0.0
- gem install ronn
# Install pulp and upgrade numpy
- sudo pip install pulp pydotplus numpy --upgrade
install:
- ./autogen.sh
- export LIBRARY_PATH=/usr/bin/../lib/gcc/x86_64-linux-gnu/4.6:/usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu:/lib/x86_64-linux-gnu:/lib/../lib64:/usr/lib/x86_64-linux-gnu:/usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../..:/usr/lib/llvm-3.5/bin/../lib:/lib:/usr/lib:$LIBRARY_PATH
- ./configure --with-llvm=/usr/lib/llvm-3.4/bin/ --with-dragonegg=/usr/local/lib/dragonegg.so CC=gcc-4.6 CXX=g++-4.6 || cat config.log
- make
- sudo make install
- export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
script:
- cd tests/
- ./test.sh
- cd ..
- for i in $(find tests/ -maxdepth 1 -type d -name 'test_*' | sort ); do echo "************** TEST $i"; cat $i/test.log; done;