mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-03-26 21:33:02 +00:00
tox ini configuration (#181)
* tox for zuul jobs * Delete .flake8 * linters * Update tox.ini * integration * integration
This commit is contained in:
@@ -16,3 +16,5 @@ rules:
|
||||
indent-sequences: consistent
|
||||
ignore: |
|
||||
.cache
|
||||
.tox
|
||||
tests/output
|
||||
|
||||
42
tox.ini
Normal file
42
tox.ini
Normal file
@@ -0,0 +1,42 @@
|
||||
[tox]
|
||||
minversion = 1.4.2
|
||||
skipsdist = True
|
||||
|
||||
[testenv:molecule]
|
||||
install_command = pip install {opts} {packages}
|
||||
|
||||
deps = ansible
|
||||
kubernetes
|
||||
molecule<3.3.0
|
||||
yamllint
|
||||
flake8
|
||||
|
||||
passenv =
|
||||
HOME
|
||||
|
||||
commands=
|
||||
{posargs}
|
||||
|
||||
[testenv:integration]
|
||||
install_command = pip install {opts} {packages}
|
||||
|
||||
deps = -r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
https://github.com/ansible/ansible/archive/devel.tar.gz
|
||||
|
||||
passenv =
|
||||
HOME
|
||||
|
||||
commands=
|
||||
ansible-test integration --docker -v --color --retry-on-error --diff --coverage --continue-on-error --python {posargs}
|
||||
|
||||
[testenv:linters]
|
||||
deps = yamllint
|
||||
flake8
|
||||
|
||||
commands =
|
||||
yamllint -s {toxinidir}
|
||||
flake8 {toxinidir}
|
||||
|
||||
[flake8]
|
||||
exclude = .git,.tox,tests/output
|
||||
Reference in New Issue
Block a user