Skip to content

Commit

Permalink
Add coveralls support
Browse files Browse the repository at this point in the history
  • Loading branch information
t-botz committed Aug 26, 2018
1 parent d468861 commit 7003b47
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 11 deletions.
20 changes: 12 additions & 8 deletions .travis.yml
@@ -1,11 +1,15 @@
language: python
matrix:
include:
- python: 3.7
dist: xenial
sudo: true
install:
- pip install pipenv
- pipenv install --dev
script:
- pipenv run -- python -m unittest
- python: 3.7
dist: xenial
sudo: true
install:
- pip install pipenv
- pipenv install --dev
script:
- pipenv run -- coverage run --source=log_splitter -m unittest
- pipenv run -- pipenv run -- coveralls
env:
global:
secure: RYBS0lDNdN9w37vjI37SfLzTYgkXA8k9qeOBKnJZ/ImVgSYwVRsUBRh2Pcj3EZswjn4bAErRdJAFt83KVF6Y8YKPbnf/oQQySwjfF5jlEOghyck6CKo7tQjs5xKo02qyFMEj1SBLcPTZgIQSfKVFiGQGwepkkmFWv40i7Q+KkIz5UkimUfbIkqb2XU/uMjbrnoNYDqIauQr21Pf26kDqmGdGyC60zDrxy9q7HHAzMnbdpFnqXCQznfr45X0rEMex3aZzwmd8gzdbkw0HUlG06TyW90h9w4ab1EpOHAdQTN++SG58sSt5IsgXc827ITKKlVNIqDKeFo8eoVxFtdHcFRfVgF3KVq5sOZFwYzIGmVvS0PQ6PNiy4NUxjdCozRv/DjPdDWTvAYayJkTJZRbJZCi7Z+hKFc7/LDja3v2v34cbZvZVCv3RmKMDW8y3CNBI16/wSzPVZNDak7e82yIGn6Spztp8sl4qM8EfQbYSRZKlNses+VuKZUibJ+No4ehV7v5rrGoSg5F9X7GwP6ARPQmL/kNrrMiLbs2Ia1PdGvTNpkLQ3DPGWN04WhNB1tHQoF0iQ6OqvrAbUBvTHE5efnzORarf+7ZcckwptjdQCTCo30pLadZX+rA3XNhd+xlFJuK09PaEAAg9PUZbqSCrMMVqkIswHevjiEDgtHXE21M=
1 change: 1 addition & 0 deletions Pipfile
Expand Up @@ -8,6 +8,7 @@ name = "pypi"
[dev-packages]
pylint = "*"
"autopep8" = "*"
coveralls = "*"

[requires]
python_version = "3.7"
91 changes: 89 additions & 2 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion log_splitter/__init__.py
Expand Up @@ -25,7 +25,7 @@ def __post_init__(self):
super().__init__()

def emit(self, record: LogRecord) -> None:
pass
pass # pragma: no cover

def handle(self, record: LogRecord) -> Optional[LogRecord]:
if record.levelno < self.log_level_threshold:
Expand Down

0 comments on commit 7003b47

Please sign in to comment.