forked from PyMVPA/PyMVPA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (48 loc) · 2.46 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
# vim ft=yaml
# travis-ci.org definition for PyMVPA build (based on nipype configuration
# which in turn was based on nipy)
#
# We pretend to be erlang because we need can't use the python support in
# travis-ci; it uses virtualenvs, they do not have numpy, scipy, matplotlib,
# and it is impractical to build them
language: erlang
env:
global:
- PY=python PYSUF=''
# - PYTHON=python3 PYSUF=3 : python3-numpy not currently available
matrix:
- PYTHON=$PY DOCTESTS=--with-doctest
- PYTHON="$PY -O" DOCTESTS=--with-doctest
# Doctests are unguarded against absent externals, so no --with-doctest for them
- PYTHONPATH=mvpa2/tests/badexternals
# Some DEBUG targets are excluded since either their output could
# not be redirected or they augment output in the doctests
- COVERAGE="coverage run --rcfile=.travis_coveragerc" MVPA_DEBUG=ENFORCE_CA_ENABLED DOCTESTS=--with-doctest
before_install:
# The ultimate one-liner setup for NeuroDebian repository
- bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh)
# - sudo apt-get install $PYTHON-dev
- travis_retry sudo apt-get install swig $PY-numpy $PY-scipy $PY-matplotlib $PY-h5py $PY-nose $PY-nibabel $PY-mock
# Optional Python modules
# Note: it looks like the line could be truncated, thus spreading them through multiple lines
- travis_retry sudo apt-get install shogun-python-modular $PY-mdp $PY-psutil $PY-sklearn
- travis_retry sudo apt-get install liblapack-dev $PY-statsmodels $PY-reportlab ipython
- travis_retry sudo apt-get install $PY-pywt $PY-lxml $PY-pprocess $PY-nipy
# Very optional R interfaces via rpy2
- travis_retry sudo apt-get install $PY-rpy2
- mkdir -p $PWD/R-libs
- echo "install.packages(c('energy', 'elasticnet'), '$PWD/R-libs', repos='http://cran.r-project.org')" | R --no-save
install:
- make
- if [ ! -z "$COVERAGE" ]; then pip install --user -v coveralls; fi
script:
# Run only nonlabile tests
- export MVPA_EXTERNALS_RAISE_EXCEPTION=off MVPA_MATPLOTLIB_BACKEND=agg
- export MVPA_DEBUG_METRICS=all MVPA_DEBUG_OUTPUT=/dev/null
- export MVPA_TESTS_LABILE=no MVPA_TESTS_VERBOSITY=2 MVPA_TESTS_WTF=1
- export PATH=$HOME/.local/bin:$PATH PYTHONPATH=.:$PYTHONPATH R_LIBS=$PWD/R-libs
- export NOSETESTS=$(which nosetests)
- eval $COVERAGE $NOSETESTS -v mvpa2 $DOCTESTS -s
- if [ ! -z "$COVERAGE" ]; then make coveragecmdline; fi
after_success:
- if [ ! -z "$COVERAGE" ]; then coveralls; fi