mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-29 18:46:52 +00:00
Merge branch 'add-code-coverage' into 'master'
Add coverage reporting and uploading See merge request !116
This commit is contained in:
commit
f768ed6fd0
5 changed files with 63 additions and 1 deletions
11
.coveragerc
Normal file
11
.coveragerc
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
[run]
|
||||
branch = True
|
||||
source =
|
||||
flake8
|
||||
|
||||
|
||||
[paths]
|
||||
source =
|
||||
src/flake8
|
||||
.tox/*/lib/python*/site-packages/flake8
|
||||
.tox/pypy/site-packages/flake8
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -10,3 +10,4 @@ dist
|
|||
*.sw*
|
||||
*.log
|
||||
docs/build/html/*
|
||||
.coverage
|
||||
|
|
|
|||
|
|
@ -10,6 +10,10 @@ before_script:
|
|||
- python get-pip.py
|
||||
- pip install -r dev-requirements.txt
|
||||
|
||||
after_script:
|
||||
- pip install codecov
|
||||
- codecov --token=7d117e6b-aab6-4283-ab19-166dafc38cf5
|
||||
|
||||
python2:
|
||||
image: python:2.7
|
||||
stage: test
|
||||
|
|
|
|||
43
codecov.yml
Normal file
43
codecov.yml
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
codecov:
|
||||
branch: master
|
||||
bot: null
|
||||
|
||||
coverage:
|
||||
precision: 2
|
||||
round: down
|
||||
range: "60...100"
|
||||
|
||||
notify:
|
||||
irc:
|
||||
default:
|
||||
server: chat.freenode.net
|
||||
channel: '##python-code-quality'
|
||||
branches: master
|
||||
threshold: 2
|
||||
message: null
|
||||
|
||||
status:
|
||||
project:
|
||||
default:
|
||||
target: auto
|
||||
threshold: null
|
||||
branches: null
|
||||
|
||||
patch:
|
||||
default:
|
||||
target: auto
|
||||
branches: null
|
||||
|
||||
changes:
|
||||
default:
|
||||
branches: null
|
||||
|
||||
ignore: null
|
||||
fixes:
|
||||
- .tox
|
||||
|
||||
comment:
|
||||
layout: "header, diff, changes, sunburst, uncovered, tree"
|
||||
branches: null
|
||||
behavior: default
|
||||
|
||||
5
tox.ini
5
tox.ini
|
|
@ -6,8 +6,11 @@ envlist = py27,py33,py34,py35,flake8,linters,docs
|
|||
deps =
|
||||
mock
|
||||
pytest
|
||||
coverage
|
||||
commands =
|
||||
py.test {posargs}
|
||||
coverage run --parallel-mode -m pytest {posargs}
|
||||
coverage combine
|
||||
coverage report -m
|
||||
|
||||
[testenv:venv]
|
||||
deps =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue