summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2015-05-11 18:26:13 +0200
committerGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2015-05-11 18:26:13 +0200
commit82a88a714e3cf932798c15879fda0a7d6d7047f1 (patch)
tree8b38dd9ffa9881835001813b939155c563bf9949 /tox.ini
parent99cc43a9bb6038d3f1c9fe4976d938232b4c8207 (diff)
downloadgitlab-82a88a714e3cf932798c15879fda0a7d6d7047f1.tar.gz
Add a tox configuration file
Run pep8 tests only for now, and fix pep8 errors.
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini25
1 files changed, 25 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..d93f8e5
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,25 @@
+[tox]
+minversion = 1.6
+skipsdist = True
+envlist = pep8
+
+[testenv]
+setenv = VIRTUAL_ENV={envdir}
+usedevelop = True
+install_command = pip install {opts} {packages}
+
+deps = -r{toxinidir}/requirements.txt
+ -r{toxinidir}/test-requirements.txt
+commands =
+ python setup.py testr --testr-args='{posargs}'
+
+[testenv:pep8]
+commands =
+ flake8 {posargs} gitlab gitlab.py
+
+[testenv:venv]
+commands = {posargs}
+
+[flake8]
+exclude = .git,.venv,.tox,dist,doc,*egg,build,
+ignore = H501