From f5a81941ff37dea09a8b609dd65c7cccada704e6 Mon Sep 17 00:00:00 2001 From: abikouo <79859644+abikouo@users.noreply.github.com> Date: Tue, 27 Jul 2021 18:16:52 +0200 Subject: [PATCH] tox ini configuration (#181) * tox for zuul jobs * Delete .flake8 * linters * Update tox.ini * integration * integration --- .yamllint | 2 ++ tox.ini | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 tox.ini diff --git a/.yamllint b/.yamllint index 2ff8b4b0..bc74eedb 100644 --- a/.yamllint +++ b/.yamllint @@ -16,3 +16,5 @@ rules: indent-sequences: consistent ignore: | .cache + .tox + tests/output diff --git a/tox.ini b/tox.ini new file mode 100644 index 00000000..361d0c7a --- /dev/null +++ b/tox.ini @@ -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