diff --git a/.travis.yml b/.travis.yml index 6e07176a0..5cedfa80f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,19 @@ language: python python: # - "2.5" - - "2.6" +# - "2.6" - "2.7" # - "3.0" # - "3.1" - - "3.2" - - "3.3" - - "3.4" - - "3.5" - -script: make -C tools/python test \ No newline at end of file +# - "3.2" +# - "3.3" +# - "3.4" +# - "3.5" +sudo: false +install: + - pip install coveralls +script: + - make -C tools/python test + - if [ "$TRAVIS_PYTHON_VERSION" = "2.7" ]; then cd python && coverage run --source=phonenumbers ./testwrapper.py && coverage report -m && cd ..; fi +after_success: + - cd python && coveralls && cd .. \ No newline at end of file diff --git a/README.md b/README.md index 4774999cc..36c18214c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ phonenumbers Python Library =========================== +[![Coverage Status](https://coveralls.io/repos/daviddrysdale/python-phonenumbers/badge.svg?branch=dev&service=github)](https://coveralls.io/github/daviddrysdale/python-phonenumbers?branch=dev) + This is a Python port of [Google's libphonenumber library](https://github.com/googlei18n/libphonenumber) It supports Python 2.5-2.7 and Python 3.x (in the same codebase, with no [2to3](http://docs.python.org/2/library/2to3.html) conversion needed).