.travis.yml 1.92 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: gX4Yr/32b9tOVFiAxjzFsbIm1VWiB6WJ1rXOd4hCd6ncBaXw83e4B/jaP1Ci2uKRi6PYO9y7AHj8y64OcTeS2Uwr+5QECRSRgf6+AKCde4VgKoh5wUpVOp4QLaZlJLNM6L/EwGWih5K2yoM/17cRLyGQC/x6QID/ZfEjwtZni2M=
  - secure: kq32QuV+vu0Qaqo1wn4UvUNAglNF4HGJv96XNwf263G+uZekCMpx6DJdiVJouxoYRcOsgkoJgbc1rxAFGUZ7PZ4gfP6srQ9i3ZT7H3zghVBr8ULwmi9+TR58W/P+KBZl/lLVSsdKeMVfT2hJ9XpF1P6G8GM/3UkTP3Rp0t8SIug=
  - 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
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
Manuel Günther's avatar
Manuel Günther committed
19
20
- pip install --find-links https://www.idiap.ch/software/bob/wheels/travis/ --use-wheel sphinx nose numpy matplotlib coverage cpp-coveralls
- 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:
Manuel Günther's avatar
Manuel Günther committed
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.mlp import get_config; print(get_config())'
26
27
28
- ./bin/coverage run --source=bob.learn.mlp ./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 --exclude-pattern=".*Compiler.*" --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