Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
4f35713f
Commit
4f35713f
authored
Apr 04, 2018
by
Paul Ganssle
Committed by
GitHub
Apr 04, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1304 from pganssle/coverage
Set up code coverage
parents
7d56dc12
58d299de
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
56 additions
and
9 deletions
+56
-9
.codecov.yml
.codecov.yml
+1
-0
.travis.yml
.travis.yml
+11
-3
appveyor.yml
appveyor.yml
+10
-4
tests/requirements.txt
tests/requirements.txt
+2
-0
tox.ini
tox.ini
+32
-2
No files found.
.codecov.yml
0 → 100644
View file @
4f35713f
comment
:
false
.travis.yml
View file @
4f35713f
...
...
@@ -8,8 +8,6 @@ python:
-
3.5
-
&latest_py3
3.6
-
nightly
-
pypy
-
pypy3
jobs
:
fast_finish
:
true
...
...
@@ -23,6 +21,7 @@ jobs:
python
:
*latest_py3
install
:
skip
script
:
skip
after_success
:
skip
before_deploy
:
python bootstrap.py
deploy
:
provider
:
pypi
...
...
@@ -35,6 +34,13 @@ jobs:
distributions
:
release
skip_cleanup
:
true
skip_upload_docs
:
true
# Don't run coverage on pypy.
-
python
:
pypy
script
:
tox
after_success
:
skip
-
python
:
pypy3
script
:
tox
after_success
:
skip
cache
:
pip
...
...
@@ -48,4 +54,6 @@ install:
# update egg_info based on setup.py in checkout
-
python bootstrap.py
script
:
tox
script
:
tox -- --cov
after_success
:
env TRAVIS_JOB_NAME="${TRAVIS_PYTHON_VERSION} (LANG=$LANG)" CODECOV_ENV=TRAVIS_JOB_NAME tox -e coverage,codecov
appveyor.yml
View file @
4f35713f
environment
:
APPVEYOR
:
true
APPVEYOR
:
True
CODECOV_ENV
:
APPVEYOR_JOB_NAME
matrix
:
-
PYTHON
:
"
C:
\\
Python35-x64"
-
PYTHON
:
"
C:
\\
Python27-x64"
-
APPVEYOR_JOB_NAME
:
"
python35-x64"
PYTHON
:
"
C:
\\
Python35-x64"
-
APPVEYOR_JOB_NAME
:
"
python27-x64"
PYTHON
:
"
C:
\\
Python27-x64"
install
:
# symlink python from a directory with a space
...
...
@@ -20,6 +23,9 @@ cache:
test_script
:
-
"
python
bootstrap.py"
-
"
python
-m
pip
install
tox"
-
"
tox"
-
"
tox
--
--cov"
after_test
:
-
tox -e coverage,codecov
version
:
'
{build}'
tests/requirements.txt
View file @
4f35713f
...
...
@@ -5,3 +5,5 @@ virtualenv>=13.0.0
pytest-virtualenv>=1.2.7
pytest>=3.0.2
wheel
coverage>=4.5.1
pytest-cov>=2.5.1
tox.ini
View file @
4f35713f
...
...
@@ -4,8 +4,38 @@
#
# export TOXENV='py27,py3{3,4,5,6},pypy,pypy3'
[tox]
envlist
=
python
[testenv]
deps
=
-rtests/requirements.txt
passenv
=
APPDATA USERPROFILE HOMEDRIVE HOMEPATH windir APPVEYOR
commands
=
py.test {posargs}
setenv
=
COVERAGE_FILE={toxworkdir}/.coverage.{envname}
# TODO: The passed environment variables came from copying other tox.ini files
# These should probably be individually annotated to explain what needs them.
passenv
=
APPDATA HOMEDRIVE HOMEPATH windir APPVEYOR APPVEYOR_* CI CODECOV_* TRAVIS TRAVIS_*
commands
=
pytest --cov-config={toxinidir}/tox.ini --cov-report= {posargs}
usedevelop
=
True
[testenv:coverage]
description
=
Combine coverage data and create report
deps
=
coverage
skip_install
=
True
changedir
=
{toxworkdir}
setenv
=
COVERAGE_FILE=.coverage
commands
=
coverage erase
coverage
combine
coverage
{posargs:xml}
[testenv:codecov]
description
=
[Only run on CI]: Upload coverage data to codecov
deps
=
codecov
skip_install
=
True
commands
=
codecov --file {toxworkdir}/coverage.xml
[coverage:run]
source
=
pkg_resources
setuptools
omit
=
*/_vendor/*
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment