.travis.yml 1.94 KB
Newer Older
André Anjos's avatar
André Anjos committed
1
language: python
2 3 4 5 6
env:
  global:
  - secure: JnEd9VsJI6Kff86rvQ3RPxoMSTef8osnBFfmbbp6ZATs4JyndGRLdF4JPBNKPkaQpno+miEXNaBQdg+nU3e/pi8GngicvL6EIHYXQpw6Wpz/YKvEOexk16Lm4WsVNZFZTrVF3+gepMjDZbCfyZLwENxGdjz1Beub7XGfUZ8rcj4=
  - secure: K41vqTkHkqWrpsB9Rnfmt9M2+lFKFAfRpmRRbHGf7MIKjS1rZJiM91mDsVElfbzDHzCcb6jN5I09LN5omrA8q56d8D3otZrPNwgfGVIoi1F2tRtekva16PTABWFPruVGApZsFREIQzV7CneaXRq37TBKhoTeTGsTZF8ZZy8db3A=
  - 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
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 19
- sudo apt-get install -qq --force-yes libboost-all-dev libblitz1-dev libhdf5-serial-dev libsvm-dev libatlas-dev libatlas-base-dev liblapack-dev texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended
- pip install --upgrade pip
20 21
- pip install --find-links https://www.idiap.ch/software/bob/wheels/travis/ --use-wheel sphinx nose 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
22
install:
Manuel Günther's avatar
Manuel Günther committed
23
- python bootstrap-buildout.py
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:
26
- ./bin/python -c 'import pkg_resources; from bob.learn.libsvm import get_config; print(get_config())'
27 28 29
- ./bin/coverage run --source=bob.learn.libsvm ./bin/nosetests -sv
- ./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
33 34 35 36
- 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