diff options
| author | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-08-06 20:34:40 +0000 |
|---|---|---|
| committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-08-06 20:34:40 +0000 |
| commit | f768ed6fd0101de656e19d3029952e69a437549e (patch) | |
| tree | 1e629a50b05556f65192e1ecfd89749924f1def7 | |
| parent | d5a6cfcff9ff93aa423ad6d9b43d6a5859711d01 (diff) | |
| parent | b995d56e1956c62b17615fa97416c85c650da539 (diff) | |
| download | flake8-f768ed6fd0101de656e19d3029952e69a437549e.tar.gz | |
Merge branch 'add-code-coverage' into 'master'
Add coverage reporting and uploading
See merge request !116
| -rw-r--r-- | .coveragerc | 11 | ||||
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | .gitlab-ci.yml | 4 | ||||
| -rw-r--r-- | codecov.yml | 43 | ||||
| -rw-r--r-- | tox.ini | 5 |
5 files changed, 63 insertions, 1 deletions
diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..0a3db04 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,11 @@ +[run] +branch = True +source = + flake8 + + +[paths] +source = + src/flake8 + .tox/*/lib/python*/site-packages/flake8 + .tox/pypy/site-packages/flake8 @@ -10,3 +10,4 @@ dist *.sw* *.log docs/build/html/* +.coverage diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 23c2f67..7446263 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..4098f51 --- /dev/null +++ b/codecov.yml @@ -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 + @@ -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 = |
