.travis.yml 1.99 KB
Newer Older
André Anjos's avatar
André Anjos committed
1
language: python
Manuel Günther's avatar
Manuel Günther committed
2
3
4
5
6
env:
  global:
  - secure: eVYI9c4v/gdgMu9/HUrdOljH6xoWucjRNlQMfh24LA3g6j1dr52+SdCP59mzFqBiAIR8eBtipIkit23sQDn+ulw3bJSrLszXsWCKGywLVG/6QtgsqN9J17/RbUA2ZnfA86famA6Z4+CtJbW7nQPYidRQshPC85iiekftN9DwdeQ=
  - secure: a+hf3j24x0fyP8OP/8IiIp5aMn+GfYxf97vWtJV1U76J8eGNLyj+n/AsPx4y6OpRWy2qTf/90W5TxU/ruRxKRl3j78+W2sYCI1LiQIlNlVX6tMrLnm2YS5zvwH3jICCmRUmY7d0Vc5MrqBRoKnmA+1QqyDrdiCjWkNSh6Jcn5KA=
  - BOB_UPLOAD_WHEEL=1
André Anjos's avatar
André Anjos committed
7
8
matrix:
  include:
9
10
  - python: 2.7
    env:
11
    - BOB_DOCUMENTATION_SERVER=https://www.idiap.ch/software/bob/docs/latest/bioidiap/%s/master
12
  - python: 3.3
Manuel Günther's avatar
Manuel Günther committed
13
  - python: 3.4
14
  - python: 3.5
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
Manuel Günther's avatar
Manuel Günther committed
18
- sudo apt-get install -qq --force-yes libboost-all-dev libblitz1-dev libhdf5-serial-dev libatlas-dev libatlas-base-dev liblapack-dev texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended  dvipng texlive-latex-base texlive-math-extra
19
- pip install --upgrade pip
20
- pip install --find-links https://www.idiap.ch/software/bob/wheels/travis/ --use-wheel sphinx nose numpy==1.9.2 matplotlib coverage cpp-coveralls
Manuel Günther's avatar
Manuel Günther committed
21
- pip install --find-links https://www.idiap.ch/software/bob/wheels/travis/ --use-wheel --pre -r requirements.txt coveralls
André Anjos's avatar
André Anjos committed
22
install:
23
- python bootstrap-buildout.py
Manuel Günther's avatar
Manuel Günther committed
24
- 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
25
script:
Manuel Günther's avatar
Manuel Günther committed
26
- ./bin/python -c 'import pkg_resources; from bob.learn.em import get_config; print(get_config())'
27
- ./bin/coverage run --source=bob.learn.em ./bin/nosetests -sv
28
29
- ./bin/sphinx-build -b doctest doc sphinx
- ./bin/sphinx-build -b html doc sphinx
André Anjos's avatar
André Anjos committed
30
after_success:
31
32
- cpp-coveralls --build-root=`pwd` --exclude=src --exclude-pattern=".*Compiler.*" --dump=cpp_cov.json
- coveralls --merge=cpp_cov.json
Manuel Günther's avatar
Manuel Günther committed
33
- wget https://raw.githubusercontent.com/bioidiap/bob.extension/master/scripts/upload-{sphinx,wheel}.sh
Manuel Günther's avatar
Manuel Günther committed
34
35
36
- chmod a+x upload-sphinx.sh upload-wheel.sh
- ./upload-sphinx.sh
- ./upload-wheel.sh