Skip to content

Instantly share code, notes, and snippets.

@ssokolow
Created May 1, 2013 16:17
Show Gist options
  • Save ssokolow/5496286 to your computer and use it in GitHub Desktop.
Save ssokolow/5496286 to your computer and use it in GitHub Desktop.
Boilerplate for making a coverage.io run on a Travis-CI Python project which cleanly skips py25, doesn't crash under pypy, and ignores nose, Python stdlib, and backported modules like unittest2 and ordereddict.
[run]
omit =
*/python?.?/*
*/lib-python/?.?/*.py
*/lib_pypy/_*.py
*/site-packages/ordereddict.py
*/site-packages/nose/*
*/unittest2/*
install:
- if [[ $TRAVIS_PYTHON_VERSION != '2.5' ]]; then pip install coveralls --use-mirrors && export HAS_COVERALLS=1; fi
after_success:
- if [[ $HAS_COVERALLS ]]; then coveralls; fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment