summaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini26
1 files changed, 26 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 000000000..899767833
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,26 @@
+[tox]
+minversion=2.3.1
+envlist =
+ py{27,35}-{flake8,pylint,unit}
+ py27-{yamllint,ansible_syntax,generate_validation}
+ integration
+skipsdist=True
+skip_missing_interpreters=True
+
+[testenv]
+skip_install=True
+deps =
+ -rrequirements.txt
+ -rtest-requirements.txt
+ py35-flake8: flake8-bugbear==17.3.0
+ integration: docker-py==1.10.6
+
+commands =
+ unit: pip install -e utils
+ unit: pytest {posargs}
+ flake8: flake8 {posargs}
+ pylint: python setup.py lint
+ yamllint: python setup.py yamllint
+ generate_validation: python setup.py generate_validation
+ ansible_syntax: python setup.py ansible_syntax
+ integration: python -c 'print("run test/integration/run-tests.sh")'