diff options
| -rw-r--r-- | .gitignore | 58 | ||||
| -rw-r--r-- | .travis.yml | 6 | ||||
| -rw-r--r-- | README.md | 4 |
3 files changed, 64 insertions, 4 deletions
@@ -1,5 +1,57 @@ -*.pyc -MANIFEST -dist/ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ *.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*,cover + +# Translations +*.mo +*.pot + +# Django stuff: +*.log + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ diff --git a/.travis.yml b/.travis.yml index fb83472..e73acad 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,10 +12,14 @@ install: - pip install -q -r requirements.txt --use-mirrors - pip install -e . - pip install pep8 + - pip install coveralls - pip install https://github.com/un33k/pyflakes/tarball/master before_script: - "pep8 --exclude=migrations --ignore=E501,E225,E128 ." - if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pyflakes -x W slugify; fi -script: python test.py +script: coverage run --source=slugify test.py + +after_success: + coveralls @@ -6,6 +6,7 @@ Python Slugify [![build-status-image-travis]][travis] [![build-status-image-fury]][fury] [![build-status-image-pypi]][pypi] +[![build-status-image-coverage]][coverage] Overview @@ -145,3 +146,6 @@ Released under a ([BSD](LICENSE.md)) license. [build-status-image-pypi]: https://pypip.in/d/python-slugify/badge.png [pypi]: https://crate.io/packages/python-slugify?version=latest + +[build-status-image-coverage]: https://coveralls.io/repos/un33k/python-slugify/badge.svg?branch=master +[coverage]: https://coveralls.io/r/un33k/python-slugify?branch=master |
