-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
34 lines (29 loc) · 1.14 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
# http://conda.pydata.org/docs/travis.html
language: python
dist: trusty
python:
- "3.5"
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq libboost-all-dev liblapack-dev libblas-dev
install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION cython numpy scipy matplotlib seaborn pytest pandas
- source activate test-environment
- pip install freeze ipython[all] flaky
- pip install --upgrade --ignore-installed pytest
- python setup.py develop
- export PYTHONPATH=`pwd`/baxcat_cxx:$PYTHONPATH
# before_script:
# - ipcluster start -n 4 --daemonize=True
# We need to run the tests twice with different numbers of OpenMP threads
script:
- make -C cxx unit
- OMP_NUM_THREADS=1 py.test -m "not inference" baxcat/
- OMP_NUM_THREADS=2 py.test -m "not inference" baxcat/