.travis.yml 1.88 KB
Newer Older
André Anjos's avatar
André Anjos committed
1
language: python
Manuel Günther's avatar
Manuel Günther committed
2
3
env:
  global:
Manuel Günther's avatar
Manuel Günther committed
4
5
  - secure: F8PfOJ9nGrtZdTcv132jrx5spnzFfpFCSMtea4TLwvotbFc7/gHVEu2UeLktWuVVnL715MSbJ8aXAFR918qwwJsCop0fnPNtgC70nLbYUNWvyOSzvm6JwXA9cYHvAgxYA4Y1folXcz+0bIQqD0MkBM/1yiLivS1kHP3K2jrdWNk=
  - secure: YAMap+9kNi9om5b4h1leawWrpgkvt1iIv3UVkfp0zTSM9kb1qVjJxWd75IxjbVSGXQ5hoMAgyOzCwOFoa4r3LMf8bBtStZ4zeoaichxEQHr05C5BXgHFDWUnFdpInvODMbfznySdxiLLWQ6kJFldmdFwYizJxcKxSWqL4EQ3Snw=
Manuel Günther's avatar
Manuel Günther committed
6
  - BOB_UPLOAD_WHEEL=1
André Anjos's avatar
André Anjos committed
7
8
matrix:
  include:
9
10
11
  - python: 2.6
  - python: 2.7
    env:
12
    - BOB_DOCUMENTATION_SERVER=https://www.idiap.ch/software/bob/docs/latest/bioidiap/%s/master
13
  - python: 3.3
Manuel Günther's avatar
Manuel Günther committed
14
  - python: 3.4
André Anjos's avatar
André Anjos committed
15
before_install:
16
17
- sudo add-apt-repository -y ppa:biometrics/bob
- sudo apt-get update -qq
18
- sudo apt-get install -qq --force-yes libboost-all-dev libblitz1-dev libjpeg8-dev libnetpbm10-dev libpng12-dev libtiff4-dev libgif-dev libhdf5-serial-dev texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended
19
- pip install --find-links https://www.idiap.ch/software/bob/wheels/travis/ --use-wheel sphinx nose coverage cpp-coveralls
Manuel Günther's avatar
Manuel Günther committed
20
- pip install --find-links https://www.idiap.ch/software/bob/wheels/travis/ --use-wheel -r requirements.txt --pre coveralls
André Anjos's avatar
André Anjos committed
21
install:
Manuel Günther's avatar
Manuel Günther committed
22
- python bootstrap-buildout.py
23
- CPPFLAGS=--coverage LDFLAGS=--coverage ./bin/buildout buildout:debug=false buildout:develop=. buildout:extensions=bob.buildout buildout:auto-checkout=
André Anjos's avatar
André Anjos committed
24
script:
Manuel Günther's avatar
Manuel Günther committed
25
- ./bin/python -c 'import pkg_resources; from bob.io.image import get_config; print(get_config())'
26
27
28
- ./bin/coverage run --source=bob.io.image ./bin/nosetests -sv
- ./bin/sphinx-build -b doctest doc sphinx
- ./bin/sphinx-build -b html doc sphinx
André Anjos's avatar
André Anjos committed
29
after_success:
30
31
- cpp-coveralls --build-root=`pwd` --exclude=src --dump=cpp_cov.json
- coveralls --merge=cpp_cov.json
Manuel Günther's avatar
Manuel Günther committed
32
33
34
35
- 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