forked from pystruct/pystruct
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
22 lines (22 loc) · 810 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
language: python
python:
- "2.7"
virtualenv:
system_site_packages: true
before_install:
- sudo add-apt-repository ppa:ukplc-team/testing -y
- sudo add-apt-repository ppa:cython-dev/master-ppa -y
- sudo apt-get update -qq
- sudo apt-get install python-scipy python-cvxopt python-sklearn libhdf5-serial-dev libboost1.49-dev libboost-python1.49-dev cython
- git clone https://github.com/opengm/opengm.git
- cd opengm
- cmake . -DWITH_BOOST=TRUE -DWITH_HDF5=TRUE -DBUILD_PYTHON_WRAPPER=TRUE -DBUILD_EXAMPLES=FALSE -DBUILD_TESTING=FALSE
- make -j6 --quiet
- sudo make install
- cd ..
- sudo rm -rf /dev/shm
- sudo ln -s /run/shm /dev/shm
install:
- pip install --use-mirrors -r requirements.txt
- python setup.py build_ext --inplace
script: make test