From 288ea0383c835c0bb12fb548668e036c98e3a9c7 Mon Sep 17 00:00:00 2001 From: Manuel Guenther <manuel.guenther@idiap.ch> Date: Thu, 30 Apr 2015 15:48:55 +0200 Subject: [PATCH] Based travis builds on wheels --- .travis.yml | 29 ++++++++++++++--------------- requirements.txt | 1 - 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/.travis.yml b/.travis.yml index 913e7ab..0e7438c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,36 +1,35 @@ language: python +env: + global: + - secure: Mjicore21483fMCADQLzOqhWQ9jWlfoppAMK+8cHYrz6pluK8cv/lBou4JXdE5Y/1z8svn44boMpCSldppDImqFfJGLFE0mvAl8CiSHtXp3mxQxpS2yDd4pCAfxMzr+K4M0/bfOrhAviI/3itKG5GiwCviLeTIiQ7dAJJrnU1C8= + - secure: QgHg0wGSy8ZGRELq7nXAAdv17q2/NDinAoFA3aNjJ5ZAUsi9ymKJGtwa1HbJN6npQgMDAew+joj85VeKMEDv7dCcNp2ySm2q23qIppoAutdBH23tvaMmvzgKsSvtFqq7SL52vcx9HY13mVXhhUenr1XeGlxRV2RFTeQz276arsg= + - BOB_UPLOAD_WHEEL=1 matrix: include: - python: 2.6 - python: 2.7 env: - - secure: Mjicore21483fMCADQLzOqhWQ9jWlfoppAMK+8cHYrz6pluK8cv/lBou4JXdE5Y/1z8svn44boMpCSldppDImqFfJGLFE0mvAl8CiSHtXp3mxQxpS2yDd4pCAfxMzr+K4M0/bfOrhAviI/3itKG5GiwCviLeTIiQ7dAJJrnU1C8= - - secure: QgHg0wGSy8ZGRELq7nXAAdv17q2/NDinAoFA3aNjJ5ZAUsi9ymKJGtwa1HbJN6npQgMDAew+joj85VeKMEDv7dCcNp2ySm2q23qIppoAutdBH23tvaMmvzgKsSvtFqq7SL52vcx9HY13mVXhhUenr1XeGlxRV2RFTeQz276arsg= - BOB_DOCUMENTATION_SERVER=https://www.idiap.ch/software/bob/docs/latest/bioidiap/%s/master - - python: 3.2 - env: - - NUMPYSPEC===1.7.1 - - SPHINXSPEC===1.2 - python: 3.3 - env: - - NUMPYSPEC===1.8.0 + - python: 3.4 before_install: - sudo add-apt-repository -y ppa:biometrics/bob - sudo apt-get update -qq - sudo apt-get install -qq --force-yes libboost-all-dev libblitz1-dev libatlas-dev libatlas-base-dev liblapack-dev libhdf5-serial-dev texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended -- if [ -n "${NUMPYSPEC}" ]; then sudo apt-get install -qq gfortran; fi -- if [ -n "${NUMPYSPEC}" ]; then pip install --find-links http://wheels.astropy.org/ --find-links http://wheels2.astropy.org/ --use-wheel numpy$NUMPYSPEC; fi -- pip install --find-links http://wheels.astropy.org/ --find-links http://wheels2.astropy.org/ --use-wheel sphinx$SPHINXSPEC nose==1.3.0 jinja2==2.6 cpp-coveralls pygments==1.6 -- pip install --pre coveralls>=1.0a +- pip install --find-links https://www.idiap.ch/software/bob/wheels/travis/ --use-wheel sphinx nose jinja2 coverage cpp-coveralls pygments +- pip install --find-links https://www.idiap.ch/software/bob/wheels/travis/ --use-wheel -r requirements.txt --pre coveralls install: - python bootstrap-buildout.py -- CPPFLAGS=--coverage LDFLAGS=--coverage ./bin/buildout +- CPPFLAGS=--coverage LDFLAGS=--coverage ./bin/buildout buildout:debug=false buildout:develop=. buildout:extensions=bob.buildout buildout:auto-checkout= script: -- ./bin/python -c 'from bob.io.base import get_config; print(get_config())' +- ./bin/python -c 'import pkg_resources; from bob.io.base import get_config; print(get_config())' - ./bin/coverage run --source=bob.io.base ./bin/nosetests -sv - ./bin/sphinx-build -b doctest doc sphinx - ./bin/sphinx-build -b html doc sphinx after_success: - cpp-coveralls --build-root=`pwd` --exclude=src --exclude-pattern=".*Compiler.*" --dump=cpp_cov.json - coveralls --merge=cpp_cov.json -- ./src/bob.extension/scripts/upload-sphinx.sh +- wget https://raw.githubusercontent.com/bioidiap/bob.extension/master/scripts/upload-{sphinx,wheel}.sh +- chmod a+x upload-sphinx.sh upload-wheel.sh +- ./upload-sphinx.sh +- ./upload-wheel.sh diff --git a/requirements.txt b/requirements.txt index 9396d1c..9e3ffe8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,3 @@ -setuptools bob.extension bob.blitz bob.core -- GitLab