mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
Reorganize lint travis builds (#10670)
* tox cleanup * 1 tox step * Revert pytest sugar changes * Tox: make pylint its own task * Bump Travis to 30 minutes timeout
This commit is contained in:
parent
fb32cc39e1
commit
3f5c748560
@ -8,18 +8,18 @@ matrix:
|
|||||||
include:
|
include:
|
||||||
- python: "3.4.2"
|
- python: "3.4.2"
|
||||||
env: TOXENV=lint
|
env: TOXENV=lint
|
||||||
|
- python: "3.4.2"
|
||||||
|
env: TOXENV=pylint
|
||||||
- python: "3.4.2"
|
- python: "3.4.2"
|
||||||
env: TOXENV=py34
|
env: TOXENV=py34
|
||||||
# - python: "3.5"
|
# - python: "3.5"
|
||||||
# env: TOXENV=typing
|
# env: TOXENV=typing
|
||||||
- python: "3.5"
|
- python: "3.5.3"
|
||||||
env: TOXENV=py35
|
env: TOXENV=py35
|
||||||
- python: "3.6"
|
- python: "3.6"
|
||||||
env: TOXENV=py36
|
env: TOXENV=py36
|
||||||
# - python: "3.6-dev"
|
# - python: "3.6-dev"
|
||||||
# env: TOXENV=py36
|
# env: TOXENV=py36
|
||||||
- python: "3.4.2"
|
|
||||||
env: TOXENV=requirements
|
|
||||||
# allow_failures:
|
# allow_failures:
|
||||||
# - python: "3.5"
|
# - python: "3.5"
|
||||||
# env: TOXENV=typing
|
# env: TOXENV=typing
|
||||||
@ -29,5 +29,5 @@ cache:
|
|||||||
- $HOME/.cache/pip
|
- $HOME/.cache/pip
|
||||||
install: pip install -U tox coveralls
|
install: pip install -U tox coveralls
|
||||||
language: python
|
language: python
|
||||||
script: travis_wait tox
|
script: travis_wait 30 tox --develop
|
||||||
after_success: coveralls
|
after_success: coveralls
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
git submodule init
|
|
||||||
script/bootstrap
|
script/bootstrap
|
||||||
|
|
||||||
pip3 install -e .
|
pip3 install -e .
|
||||||
|
@ -6,10 +6,7 @@ testpaths = tests
|
|||||||
norecursedirs = .git testing_config
|
norecursedirs = .git testing_config
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
exclude = .venv,.git,.tox,docs,www_static,venv,bin,lib,deps,build
|
exclude = .venv,.git,.tox,docs,venv,bin,lib,deps,build
|
||||||
|
|
||||||
[pydocstyle]
|
|
||||||
match_dir = ^((?!\.|www_static).)*$
|
|
||||||
|
|
||||||
[isort]
|
[isort]
|
||||||
# https://github.com/timothycrosley/isort
|
# https://github.com/timothycrosley/isort
|
||||||
|
11
tox.ini
11
tox.ini
@ -12,12 +12,12 @@ setenv =
|
|||||||
whitelist_externals = /usr/bin/env
|
whitelist_externals = /usr/bin/env
|
||||||
install_command = /usr/bin/env LANG=C.UTF-8 pip install {opts} {packages}
|
install_command = /usr/bin/env LANG=C.UTF-8 pip install {opts} {packages}
|
||||||
commands =
|
commands =
|
||||||
py.test --timeout=30 --duration=10 --cov --cov-report= {posargs}
|
py.test --timeout=15 --duration=10 --cov --cov-report= {posargs}
|
||||||
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
|
||||||
|
|
||||||
[testenv:lint]
|
[testenv:pylint]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
ignore_errors = True
|
ignore_errors = True
|
||||||
deps =
|
deps =
|
||||||
@ -25,15 +25,16 @@ deps =
|
|||||||
-r{toxinidir}/requirements_test.txt
|
-r{toxinidir}/requirements_test.txt
|
||||||
-c{toxinidir}/homeassistant/package_constraints.txt
|
-c{toxinidir}/homeassistant/package_constraints.txt
|
||||||
commands =
|
commands =
|
||||||
flake8
|
|
||||||
pylint homeassistant
|
pylint homeassistant
|
||||||
pydocstyle homeassistant tests
|
|
||||||
|
|
||||||
[testenv:requirements]
|
[testenv:lint]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
deps =
|
deps =
|
||||||
|
-r{toxinidir}/requirements_test.txt
|
||||||
commands =
|
commands =
|
||||||
python script/gen_requirements_all.py validate
|
python script/gen_requirements_all.py validate
|
||||||
|
flake8
|
||||||
|
pydocstyle homeassistant tests
|
||||||
|
|
||||||
[testenv:typing]
|
[testenv:typing]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user