From 9a5154818ba56e50129a8ae9046a6d76266bc73a Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.dos.anjos@gmail.com> Date: Sat, 22 Mar 2014 06:49:53 +0100 Subject: [PATCH] Add Travis-CI support --- .travis.yml | 28 ++++++++++++++++++++++++++++ README.rst | 3 +++ 2 files changed, 31 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..c81e7b2 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,28 @@ +# 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 + - sudo apt-get update -qq + - sudo apt-get install -qq bob-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 +install: + - "python bootstrap.py" + - "./bin/buildout" +script: + - "./bin/nosetests -sv" + - "./bin/sphinx-build -b doctest doc sphinx" + - "./bin/sphinx-build -b html doc sphinx" diff --git a/README.rst b/README.rst index f5a4938..9b92043 100644 --- a/README.rst +++ b/README.rst @@ -2,6 +2,9 @@ .. Andre Anjos <andre.anjos@idiap.ch> .. Thu 29 Aug 2013 16:07:57 CEST +.. image:: https://travis-ci.org/bioidiap/xbob.io.svg?branch=master + :target: https://travis-ci.org/bioidiap/xbob.io + ============================ Python bindings for bob.io ============================ -- GitLab