-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
33 lines (28 loc) · 1.19 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
language: python
python:
- "2.7"
before_install:
- sudo apt-get update
- sudo apt-get install -qq libfreetype6-dev libblas-dev libgfortran3 build-essential gfortran liblapack-dev git libopenmpi-dev
- sudo apt-get install -qq graphviz graphviz-dev
install:
# install anaconda-python
- curl http://09c8d0b2229f813c1b93-c95ac804525aac4b6dba79b00b39d1d3.r79.cf1.rackcdn.com/Anaconda-2.0.1-Linux-x86_64.sh > ana.sh
- bash ana.sh -b
- ANACONDA=$HOME/anaconda
- export PATH=$ANACONDA/bin:$PATH
- unlink $ANACONDA/lib/libm.so
- ln -s /usr/lib/x86_64-linux-gnu/libm.so $ANACONDA/lib/libm.so
- unlink $ANACONDA/lib/libm.so.6
- ln -s /usr/lib/x86_64-linux-gnu/libm.so $ANACONDA/lib/libm.so.6
# install dependencies
- pip install -r requirements.txt
- git clone https://bitbucket.org/mpi4py/mpi4py.git; cd mpi4py; pip install --upgrade .; cd ..;
- git clone https://github.com/nlhepler/pydot.git; cd pydot; python setup.py install; cd ..
- pip install coveralls
# compile cpp files
- cd sparse; make all; cd ..;
before_script:
- export PYTHON_PATH=$PYTHON_PATH:$(pwd)
script: coverage run --source=sparse test.py
after_success: coveralls