From 7ab4194717ea4b6720c686385cc945aa11f31750 Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.dos.anjos@gmail.com> Date: Sat, 22 Mar 2014 06:59:06 +0100 Subject: [PATCH] Add Travis-CI support --- .travis.yml | 28 ++++++++++++++++++++++++++++ README.rst | 3 +++ buildout.cfg | 4 ++-- doc/conf.py | 1 - setup.py | 2 +- 5 files changed, 34 insertions(+), 4 deletions(-) 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 5c6cb4a..5e1195d 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.core.svg?branch=master + :target: https://travis-ci.org/bioidiap/xbob.core + ============================== Python bindings for bob.core ============================== diff --git a/buildout.cfg b/buildout.cfg index 1a8f5a9..5dc5595 100644 --- a/buildout.cfg +++ b/buildout.cfg @@ -19,8 +19,8 @@ prefixes = /idiap/group/torch5spro/nightlies/last/bob/linux-x86_64-release /Users/andre/work/bob/b/dbg/ [sources] -xbob.extension = git git@github.com:bioidiap/xbob.extension branch=prototype -xbob.blitz = git git@github.com:bioidiap/xbob.blitz +xbob.extension = git https://github.com/bioidiap/xbob.extension branch=prototype +xbob.blitz = git https://github.com/bioidiap/xbob.blitz [scripts] recipe = xbob.buildout:scripts diff --git a/doc/conf.py b/doc/conf.py index 050d2ca..ef2f6d6 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -31,7 +31,6 @@ extensions = [ 'sphinx.ext.autosummary', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', - 'matplotlib.sphinxext.plot_directive', ] # The viewcode extension appeared only on Sphinx >= 1.0.0 diff --git a/setup.py b/setup.py index 87a30b5..7429181 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ package_dir = os.path.dirname(os.path.realpath(__file__)) package_dir = os.path.join(package_dir, 'xbob', 'core', 'include') include_dirs = [package_dir] -packages = ['bob-core >= 1.3'] +packages = ['bob-core >= 1.2.2'] version = '2.0.0a0' setup( -- GitLab