.travis.yml 1.26 KB
Newer Older
André Anjos's avatar
André Anjos committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
# After changing this file, run it through http://lint.travis-ci.org/
# Generates 4 builds, the ones for python3 will install external wheels
language: python
python:
  - 2.6
  - 2.7
matrix:
  include:
    - python: 3.2
      env:
        - NUMPYSPEC===1.7.1
    - python: 3.3
      env:
        - NUMPYSPEC===1.8.0
before_install:
  - sudo add-apt-repository -y ppa:biometrics/bob
André Anjos's avatar
André Anjos committed
17
  - sudo add-apt-repository -y ppa:biometrics/bob.preview
André Anjos's avatar
André Anjos committed
18
  - sudo apt-get update -qq
19
  - sudo apt-get install -qq --force-yes bob-dev
André Anjos's avatar
André Anjos committed
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
  - sudo apt-get install -qq libsvm-dev
  - if [ -n "${NUMPYSPEC}" ]; then sudo apt-get install -qq libatlas-dev libatlas-base-dev liblapack-dev gfortran; fi
  - if [ -n "${NUMPYSPEC}" ]; then pip install --upgrade pip setuptools; fi
  - if [ -n "${NUMPYSPEC}" ]; then pip install --find-links http://wheels.astropy.org/ --find-links http://wheels2.astropy.org/ --use-wheel numpy$NUMPYSPEC sphinx nose; fi
  - pip install coveralls
install:
  - "python bootstrap.py"
  - "./bin/buildout"
script:
  - "./bin/python -c 'from xbob.learn.libsvm import get_config; print(get_config())'"
  - "./bin/coverage run --source=xbob.learn.libsvm ./bin/nosetests -sv"
  - "./bin/sphinx-build -b doctest doc sphinx"
  - "./bin/sphinx-build -b html doc sphinx"
after_success:
  - "coveralls"