Coverage reporting

This commit is contained in:
Łukasz Langa 2018-03-26 00:49:21 -07:00
parent cbf010e0a2
commit 42519f8b32
3 changed files with 9 additions and 3 deletions

4
.coveragerc Normal file
View File

@ -0,0 +1,4 @@
[report]
omit =
blib2to3/*
*/site-packages/*

View File

@ -2,12 +2,14 @@ sudo: false
language: python
cache: pip
before_script:
- pip install flake8 flake8-bugbear mypy
- pip install coverage coveralls flake8 flake8-bugbear mypy
- pip install -e .
script:
- python setup.py test
- coverage run tests/test_black.py
- if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then mypy black.py tests/test_black.py; fi
- if [[ $TRAVIS_PYTHON_VERSION == '3.6-dev' ]]; then flake8 black.py tests/test_black.py; fi
after_success:
- coveralls
notifications:
on_success: change
on_failure: always

View File

@ -1,6 +1,6 @@
# black
[![Build Status](https://travis-ci.org/ambv/black.svg?branch=master)](https://travis-ci.org/ambv/black) [![Documentation Status](http://readthedocs.org/projects/black/badge/?version=latest)](http://black.readthedocs.io/en/latest/?badge=latest) ![License: MIT](https://img.shields.io/github/license/ambv/black.svg) ![PyPI](https://img.shields.io/pypi/v/black.svg) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
[![Build Status](https://travis-ci.org/ambv/black.svg?branch=master)](https://travis-ci.org/ambv/black) [![Documentation Status](http://readthedocs.org/projects/black/badge/?version=latest)](http://black.readthedocs.io/en/latest/?badge=latest) [![Coverage Status](https://coveralls.io/repos/github/ambv/black/badge.svg?branch=master)](https://coveralls.io/github/ambv/black?branch=master) ![License: MIT](https://img.shields.io/github/license/ambv/black.svg) ![PyPI](https://img.shields.io/pypi/v/black.svg) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
> Any color you like.