mirror of
https://github.com/clearml/wexpect-venv
synced 2025-02-12 07:38:23 +00:00
[ADD] upload all coverage reports
This commit is contained in:
parent
7afcbe8f73
commit
3a83f68d48
@ -13,16 +13,13 @@ environment:
|
|||||||
|
|
||||||
build: off
|
build: off
|
||||||
|
|
||||||
install:
|
|
||||||
- pip install .[test]
|
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
- tox
|
- tox
|
||||||
|
|
||||||
after_test:
|
after_test:
|
||||||
# Upload code coverage results.
|
# Upload code coverage results.
|
||||||
# https://github.com/codecov/codecov-python/issues/158#issuecomment-514282362
|
# https://github.com/codecov/codecov-python/issues/158#issuecomment-514282362
|
||||||
- codecov --no-color -X gcov --file coverage.xml --required || (sleep 5 && codecov --no-color -X gcov --file coverage.xml --required) || (sleep 5 && codecov --no-color -X gcov --file coverage.xml --required) || (sleep 5 && codecov --no-color -X gcov --file coverage.xml --required) || (sleep 5 && codecov --no-color -X gcov --file coverage.xml --required)
|
- (codecov --no-color -X gcov --file py37-default_coverage.xml --required && codecov --no-color -X gcov --file py37-legacy_wexpect_coverage.xml --required && codecov --no-color -X gcov --file py37-spawn_pipe_coverage.xml --required) || (sleep 30 && codecov --no-color -X gcov --file py37-default_coverage.xml --required && codecov --no-color -X gcov --file py37-legacy_wexpect_coverage.xml --required && codecov --no-color -X gcov --file py37-spawn_pipe_coverage.xml --required)
|
||||||
# fill .pypirc file.
|
# fill .pypirc file.
|
||||||
# pypi
|
# pypi
|
||||||
- cmd: "echo [pypi] > %USERPROFILE%\\.pypirc"
|
- cmd: "echo [pypi] > %USERPROFILE%\\.pypirc"
|
||||||
|
15
tox.ini
15
tox.ini
@ -1,15 +1,28 @@
|
|||||||
# tox.ini
|
# tox.ini
|
||||||
|
# Run tests of wexpect in multiple configuration.
|
||||||
|
|
||||||
[tox]
|
[tox]
|
||||||
|
# The following configuration will run automatically.
|
||||||
envlist = py{37}-{default,legacy_wexpect,spawn_pipe}
|
envlist = py{37}-{default,legacy_wexpect,spawn_pipe}
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
description = Unit tests
|
description = Unit tests
|
||||||
|
|
||||||
|
# Set environment variables to select the proper configuration for each envirnment.
|
||||||
setenv =
|
setenv =
|
||||||
spawn_pipe: WEXPECT_SPAWN_CLASS=SpawnPipe
|
spawn_pipe: WEXPECT_SPAWN_CLASS=SpawnPipe
|
||||||
legacy_wexpect: WEXPECT_SPAWN_CLASS=legacy_wexpect
|
legacy_wexpect: WEXPECT_SPAWN_CLASS=legacy_wexpect
|
||||||
|
|
||||||
commands =
|
commands =
|
||||||
|
# install the dependencies:
|
||||||
pip install .[test]
|
pip install .[test]
|
||||||
|
|
||||||
|
# Run the test itself
|
||||||
coverage run -m unittest
|
coverage run -m unittest
|
||||||
|
|
||||||
|
# Dump coverage summary to console
|
||||||
coverage report --omit tests/*
|
coverage report --omit tests/*
|
||||||
coverage xml --omit tests/*
|
|
||||||
|
# Convert coverage report to standard xml formula the filename includes the tox environment name
|
||||||
|
# https://tox.readthedocs.io/en/latest/config.html#environment-variable-substitutions
|
||||||
|
coverage xml --omit tests/* -o {env:TOX_ENV_NAME}_coverage.xml
|
||||||
|
Loading…
Reference in New Issue
Block a user