.travis.yml 1.88 KB
Newer Older
André Anjos's avatar
André Anjos committed
1
language: python
2
3
4
5
6
env:
  global:
  - secure: U6PO13Ek4WGWqkx1g9nearxLiK9QEOp0/YcncDGtK1uTjH4poEfL4+Zdqdmusgz0ZPzEbpNdDjrVkPdzlHfMCLiD7b1F0ZXwZn8gZaQRljCFVN4gRxHHUSDuhqMCfByJe2dAai7G+NP7k2c4j+kjMMNt0L8Sg9kxPjk99ZH0EL4=
  - secure: SPjDIc4Qs4FsnCUyHbsYKj8+7FmltTrFfoRBEqbYvSC6onRjfkauJEFSBkO2sTv/usa5AcKmCBjfMiqSya2/eSjJzti7d1AWHrtIe8CsU4/KtJkCT/3Y72HJk35CRpUyp/Pd3dhASjrAvI7aByU60EvRfxcwtNJEumwx0bM+OE8=
  - 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
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 --force-yes libboost-all-dev libblitz1-dev libhdf5-serial-dev texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended
19
- pip install --upgrade --find-links https://www.idiap.ch/software/bob/wheels/travis/ --use-wheel numpy scipy sphinx nose matplotlib 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:
25
- ./bin/python -c 'import pkg_resources; from bob.measure import get_config; print(get_config())'
26
27
28
- ./bin/coverage run --source=bob.measure ./bin/nosetests -sv
- ./bin/sphinx-build -b doctest doc sphinx
- ./bin/sphinx-build -b html doc sphinx
29
after_success:
Manuel Günther's avatar
Manuel Günther committed
30
- cpp-coveralls --build-root=`pwd` --exclude=src --exclude-pattern=".*Compiler.*" --dump=cpp_cov.json
31
- coveralls --merge=cpp_cov.json
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