Skip to content

Commit

Permalink
Add coveralls files and update Travis to use them
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-blanchard committed Apr 10, 2015
1 parent 2e1236b commit b407818
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[run]
source = streamparse
omit =
*/python?.?/*
*/lib-python/?.?/*.py
*/lib_pypy/_*.py
*/site-packages/ordereddict.py
*/site-packages/nose/*
*/unittest2/*
17 changes: 13 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,18 @@ python:
- "pypy"

install:
- "python setup.py --version"
- "travis_retry pip install -r requirements.txt"
- echo ${TRAVIS_PYTHON_VERSION}
- travis_retry pip install -r requirements.txt
- travis_retry pip install python-coveralls coverage nose-cov
- sudo rm -rf /dev/shm
- sudo ln -s /run/shm /dev/shm
- echo TRAVIS_PYTHON_VERSION=${TRAVIS_PYTHON_VERSION}
- if [ ${TRAVIS_PYTHON_VERSION:0:1} != "3" ]; then travis_retry pip install contextlib2; fi
- python setup.py --version

script: nosetests
# Run test
script:
- nosetests -v --with-cov --cov streamparse --cov-config .coveragerc --logging-level=DEBUG

# Calculate coverage on success
after_success:
- coveralls --config_file .coveragerc

0 comments on commit b407818

Please sign in to comment.