Skip to content

Commit

Permalink
add coverage test for travis
Browse files Browse the repository at this point in the history
  • Loading branch information
jaquesgrobler committed Oct 8, 2013
1 parent 6f3a805 commit 26dcdfa
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[run]
branch = True
source = sklearn
include = */sklearn/*
omit =
*/sklearn/externals/*
*/benchmarks/*
*/setup.py
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ samples
doc/coverages
doc/samples
*.prof
.tox/
.coverage

lfw_preprocessed/
nips2010_pdf/
Expand Down
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
language: python
env:
- COVERAGE=--with-coverage
python:
- "2.7"
virtualenv:
Expand All @@ -7,4 +9,8 @@ before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq python-scipy python-nose
install: python setup.py build_ext --inplace
script: make test
- if [ "${COVERAGE}" == "--with-coverage" ]; then
sudo $PIP install coverage;
fi
script: - make test
- if [ "${COVERAGE}" == "--with-coverage" ]; then make test-coverage; fi

0 comments on commit 26dcdfa

Please sign in to comment.