Commit d3d35dfb authored by Manuel Günther's avatar Manuel Günther
Browse files

Updated travis to include coverage only in one build.

parent 63473ee8
......@@ -8,6 +8,7 @@ parts
.installed.cfg
.mr.developer.cfg
.settings
.coverage
build
*.egg-info
*egg
......
......@@ -4,6 +4,7 @@ matrix:
- python: 2.6
env:
- SCIPYSPEC===0.12.0
- COVERALL=-coverage
- python: 2.7
env:
- SCIPYSPEC===0.12.0
......@@ -25,15 +26,16 @@ before_install:
- if [ -n "${NUMPYSPEC}" ]; then pip install --upgrade pip setuptools; fi
- if [ -n "${NUMPYSPEC}" ]; then pip install --find-links http://wheels.astropy.org/ --find-links http://wheels2.astropy.org/ --use-wheel numpy$NUMPYSPEC; fi
- pip install --find-links http://wheels.astropy.org/ --find-links http://wheels2.astropy.org/ --use-wheel scipy$SCIPYSPEC matplotlib==1.3.0 sphinx nose==1.3.0 jinja2==2.6
- pip install cpp-coveralls
- if [ -n "${COVERALL}" ]; then pip install cpp-coveralls; fi
install:
- python bootstrap.py
- CFLAGS=-coverage ./bin/buildout
- CFLAGS=${COVERALL} ./bin/buildout
script:
- ./bin/python -c 'from bob.learn.boosting import get_config; print(get_config())'
- ./bin/coverage run --source=bob.learn.boosting ./bin/nosetests -sv
- if [ -n "${COVERALL}" ]; then ./bin/coverage run --source=bob.learn.boosting ./bin/nosetests -sv;
else ./bin/nosetests -sv; fi
- ./bin/sphinx-build -b doctest doc sphinx
- ./bin/sphinx-build -b html doc sphinx
after_success:
- coveralls --build-root=`pwd` --exclude=src --exclude=build
- if [ -n "${COVERALL}" ]; then coveralls --build-root=`pwd` --exclude=src --exclude=/usr --exclude-pattern="Compiler*"; fi
- ./src/bob.extension/scripts/upload-sphinx.sh
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment