This repository has been archived by the owner on Jan 10, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.travis.yml
57 lines (44 loc) · 1.53 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
54
55
56
57
# Config file for automatic testing at travis-ci.org
# Inspired by https://github.com/soft-matter/trackpy/blob/master/.travis.yml
language: python
# installing requirements.txt takes 5 minutes, mostly due to matplotlib
cache: pip
python:
- "2.7"
notifications:
email: false
before_install:
# install conda to help with numpy/scipy system dependencies
- wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- export CONDA_PREFIX=/home/travis/mc
- ./miniconda.sh -b -p "$CONDA_PREFIX"
- export PATH="$CONDA_PREFIX/bin":$PATH
# install matplotlib system dependencies
- sudo apt-get -qq update
- sudo apt-get install -y libx11-dev
# install msgsteiner dependencies
- sudo apt-get install -y libboost-dev libboost-program-options-dev
# install msgsteiner
- wget http://staff.polito.it/alfredo.braunstein/code/msgsteiner-1.3.tgz
- tar xzf msgsteiner-1.3.tgz
- cd msgsteiner-1.3
- patch Makefile ../patches/Makefile.linux.patch
- make
- export MSGSTEINER_PATH="$(pwd -P)/msgsteiner"
- cd ..
install:
# setup python environment
- conda create -n testenv -y pip setuptools python=$TRAVIS_PYTHON_VERSION
- source activate testenv
# debug
- echo $PATH
- echo $MSGSTEINER_PATH
- echo $CONDA_PREFIX
# install python dependencies
- pip install -r requirements.txt
# also install test dependencies
- pip install pytest>=2.9.2
# install our package
- python setup.py install
script: python setup.py test -a "--msgpath=$MSGSTEINER_PATH"