forked from sys-bio/roadrunner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (39 loc) · 1.49 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
45
46
47
48
49
50
51
52
53
sudo: required
dist: trusty
language: cpp
notifications:
email:
compiler: gcc
branches:
only:
- develop
- master
before_install:
# print the distro information
- lsb_release -a
# cache refresh required to install packages
- sudo apt-get update -qq
# install dependencies
- sudo apt-get -y install cmake swig python-dev python-numpy llvm-3.5-dev
- mkdir ~/install
# install roadrunner dependencies via apt:
- sudo sh -c 'echo "\n\ndeb http://cdn.rawgit.com/sys-bio/roadrunner-debs/master ./ \n\n" >> /etc/apt/sources.list'
- sudo cat /etc/apt/sources.list
- sudo apt-get update -qq
- sudo apt-get -y --force-yes install libroadrunner-deps-dev
- echo "TRAVIS_BUILD_DIR $TRAVIS_BUILD_DIR"
# build roadrunner:
- mkdir -p ~/build/roadrunner
install:
- cd ~/build/roadrunner
- cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=~/install/roadrunner -DTHIRD_PARTY_INSTALL_FOLDER=/usr -DLLVM_CONFIG_EXECUTABLE=/usr/lib/llvm-3.5/bin/llvm-config -DBUILD_PYTHON=ON -DPYTHON_EXECUTABLE=/usr/bin/python -DPYTHON_INCLUDE_DIR=/usr/include/python2.7 -DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython2.7.so python2.7 -DBUILD_TESTS=ON -DBUILD_TEST_TOOLS=ON -DUSE_TR1_CXX_NS=ON -DBUILD_JAVA_INTERFACE=OFF "$TRAVIS_BUILD_DIR"
- make -j2
- make install
before_script: true
script:
- cd ~/build/roadrunner
- make -j2 && make install
- ctest -VV
# display results of compiled tests
- cat autotest/compiled-test-suite/results.xml