.travis.yml 1.86 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
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
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 --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
20
- 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
21
install:
22
- python bootstrap-buildout.py
Manuel Günther's avatar
Manuel Günther committed
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.learn.em import get_config; print(get_config())'
26
- ./bin/coverage run --source=bob.learn.em ./bin/nosetests -sv
27
28
- ./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 --exclude-pattern=".*Compiler.*" --dump=cpp_cov.json
- coveralls --merge=cpp_cov.json
Manuel Günther's avatar
Manuel Günther committed
32
33
34
- chmod a+x upload-sphinx.sh upload-wheel.sh
- ./upload-sphinx.sh
- ./upload-wheel.sh