Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
fluiddyn
transonic
Commits
b15fa992bc44
Commit
18819bda
authored
Oct 04, 2018
by
Pierre Augier
Browse files
tox
parent
e42879c6aa1b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
b15fa992
...
...
@@ -8,11 +8,11 @@ black:
tests
:
pytest
-s
_
tests_coverage
:
tests_coverage
:
mkdir
-p
.coverage
coverage run
-p
-m
pytest
_
report_coverage
:
report_coverage
:
coverage combine
coverage report
coverage html
...
...
@@ -20,4 +20,4 @@ _report_coverage:
@
echo
"Code coverage analysis complete. View detailed report:"
@
echo
"file://
${PWD}
/.coverage/index.html"
coverage
:
_
tests_coverage
_
report_coverage
coverage
:
tests_coverage report_coverage
tox.ini
0 → 100644
View file @
b15fa992
# Tox (http://tox.testrun.org/) is a tool for running tests in
# multiple virtualenvs. This configuration file will run the test
# suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
# http://tox.readthedocs.io/en/latest/config.html
#
# To run tox faster, check out Detox
# (https://pypi.python.org/pypi/detox), which runs your tox runs in
# parallel. To use it, "pip install detox" and then run "detox" from
# this directory.
[tox]
envlist
=
python{3.6,3.7},
pypy3.5-6.0.0
codecov
[testenv]
sitepackages
=
True
deps
=
coverage
pytest
whitelist_externals
=
make
commands
=
make
tests_coverage
[testenv:codecov]
passenv
=
CODECOV_TOKEN
sitepackages
=
True
deps
=
codecov
whitelist_externals
=
make
skip_install
=
true
commands
=
make
report_coverage
codecov
--file
.coverage/coverage.xml
[testenv:codecov-travis]
passenv
=
CI TRAVIS TRAVIS_*
deps
=
codecov
skip_install
=
true
commands
=
make
report_coverage
codecov
--file
.coverage/coverage.xml
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