language: python
matrix:
  include:
  - python: 2.6
  - python: 2.7
    env:
    - secure: gX4Yr/32b9tOVFiAxjzFsbIm1VWiB6WJ1rXOd4hCd6ncBaXw83e4B/jaP1Ci2uKRi6PYO9y7AHj8y64OcTeS2Uwr+5QECRSRgf6+AKCde4VgKoh5wUpVOp4QLaZlJLNM6L/EwGWih5K2yoM/17cRLyGQC/x6QID/ZfEjwtZni2M=
    - secure: kq32QuV+vu0Qaqo1wn4UvUNAglNF4HGJv96XNwf263G+uZekCMpx6DJdiVJouxoYRcOsgkoJgbc1rxAFGUZ7PZ4gfP6srQ9i3ZT7H3zghVBr8ULwmi9+TR58W/P+KBZl/lLVSsdKeMVfT2hJ9XpF1P6G8GM/3UkTP3Rp0t8SIug=
  - 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
- sudo apt-get update -qq
- sudo apt-get install -qq --force-yes bob-dev  libboost-all-dev libblitz1-dev libhdf5-serial-dev libatlas-dev libatlas-base-dev liblapack-dev
- if [ -n "${NUMPYSPEC}" ]; then sudo apt-get install -qq  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 cpp-coveralls
install:
- python bootstrap.py
- CFLAGS=-coverage ./bin/buildout
script:
- ./bin/python -c 'from bob.learn.mlp import get_config; print(get_config())'
- ./bin/coverage run --source=bob.learn.mlp ./bin/nosetests -sv
- ./bin/sphinx-build -b doctest doc sphinx
- ./bin/sphinx-build -b html doc sphinx
after_success:
- coveralls --build-root=`pwd` --exclude=src
- ./src/bob.extension/scripts/upload-sphinx.sh
