forked from pyRiemann/pyRiemann
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (39 loc) · 1.24 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
language: python
env:
- PYTHON=2.7
- PYTHON=3.5
# command to install dependencies\
cache: pip
sudo: false
virtualenv:
system_site_packages: true
addons:
apt:
packages:
- libatlas-dev
- libatlas3gf-base
- libblas-dev
- liblapack-dev
- python-matplotlib
- gfortran
- python-tk
install:
- conda create -n testenv --yes pip python=$PYTHON
- source activate testenv
- conda install --yes --quiet numpy scipy scikit-learn seaborn six pandas nose coverage
- pip install codecov
- python setup.py build install
# Setup anaconda
before_install:
- wget -q http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b -p /home/travis/miniconda
- export PATH=/home/travis/miniconda/bin:$PATH
- conda update --yes --quiet conda
# We need to create a (fake) display on Travis (allows Mayavi tests to run)
- export DISPLAY=:99.0
- /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1400x900x24 -ac +extension GLX +render -noreset
# command to run tests
script: nosetests --with-coverage --cover-package=pyriemann
after_success:
- codecov