mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Travis and tox config improvements (#28667)
* Use travis_wait only with pylint pylint is the only job that is expected to be silent for extended time. For others such a silence is a sign of a problem and using travis_wait just lengthens the wait, and makes things harder to follow and debug, because it also suppresses output in the web UI. * Use pytest-xdist in tox Similarly as in Azure.
This commit is contained in:
parent
b4cec23add
commit
a48d426f18
@ -19,7 +19,7 @@ matrix:
|
|||||||
- python: "3.6.1"
|
- python: "3.6.1"
|
||||||
env: TOXENV=lint
|
env: TOXENV=lint
|
||||||
- python: "3.6.1"
|
- python: "3.6.1"
|
||||||
env: TOXENV=pylint PYLINT_ARGS=--jobs=0
|
env: TOXENV=pylint PYLINT_ARGS=--jobs=0 TRAVIS_WAIT=30
|
||||||
- python: "3.6.1"
|
- python: "3.6.1"
|
||||||
env: TOXENV=typing
|
env: TOXENV=typing
|
||||||
- python: "3.6.1"
|
- python: "3.6.1"
|
||||||
@ -33,4 +33,4 @@ cache:
|
|||||||
- $HOME/.cache/pre-commit
|
- $HOME/.cache/pre-commit
|
||||||
install: pip install -U tox
|
install: pip install -U tox
|
||||||
language: python
|
language: python
|
||||||
script: travis_wait 50 tox --develop
|
script: ${TRAVIS_WAIT:+travis_wait $TRAVIS_WAIT} tox --develop
|
||||||
|
6
tox.ini
6
tox.ini
@ -5,19 +5,21 @@ skip_missing_interpreters = True
|
|||||||
[testenv]
|
[testenv]
|
||||||
basepython = {env:PYTHON3_PATH:python3}
|
basepython = {env:PYTHON3_PATH:python3}
|
||||||
commands =
|
commands =
|
||||||
pytest --timeout=9 --durations=10 -qq -o console_output_style=count -p no:sugar {posargs}
|
pytest --timeout=9 --durations=10 -n auto --dist=loadfile -qq -o console_output_style=count -p no:sugar {posargs}
|
||||||
{toxinidir}/script/check_dirty
|
{toxinidir}/script/check_dirty
|
||||||
deps =
|
deps =
|
||||||
-r{toxinidir}/requirements_test_all.txt
|
-r{toxinidir}/requirements_test_all.txt
|
||||||
-c{toxinidir}/homeassistant/package_constraints.txt
|
-c{toxinidir}/homeassistant/package_constraints.txt
|
||||||
|
pytest-xdist
|
||||||
|
|
||||||
[testenv:cov]
|
[testenv:cov]
|
||||||
commands =
|
commands =
|
||||||
pytest --timeout=9 --durations=10 -qq -o console_output_style=count -p no:sugar --cov --cov-report= {posargs}
|
pytest --timeout=9 --durations=10 -n auto --dist=loadfile -qq -o console_output_style=count -p no:sugar --cov --cov-report= {posargs}
|
||||||
{toxinidir}/script/check_dirty
|
{toxinidir}/script/check_dirty
|
||||||
deps =
|
deps =
|
||||||
-r{toxinidir}/requirements_test_all.txt
|
-r{toxinidir}/requirements_test_all.txt
|
||||||
-c{toxinidir}/homeassistant/package_constraints.txt
|
-c{toxinidir}/homeassistant/package_constraints.txt
|
||||||
|
pytest-xdist
|
||||||
|
|
||||||
[testenv:pylint]
|
[testenv:pylint]
|
||||||
ignore_errors = True
|
ignore_errors = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user