From ab2ef6d86ebf594702174eb43983f6fb34d28a35 Mon Sep 17 00:00:00 2001 From: AlexV Date: Thu, 17 May 2018 14:48:29 +0200 Subject: [PATCH] toxing for easy multiversion tests --- .travis.yml | 4 ++-- tox.ini | 30 ++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 tox.ini diff --git a/.travis.yml b/.travis.yml index c49062a..6f323b1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,6 @@ python: - "3.6" - "pypy" # PyPy2 5.8.0 - "pypy3" # Pypy3 5.8.0-beta0 +install: pip install tox-travis script: - - pip install -r nearley-requirements.txt - - python -m tests + - tox diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..d5820b9 --- /dev/null +++ b/tox.ini @@ -0,0 +1,30 @@ +[tox] +envlist = py27, py34, py35, py36, pypy, pypy3 +skip_missing_interpreters=true + +[travis] +2.7 = py27 +3.4 = py34 +3.5 = py35 +3.6 = py36 +pypy = pypy +pypy3 = pypy3 + +# Note : We can depend on travis matrix if needed +;[travis:env] +;DJANGO = +; 1.7: django17 +; 1.8: django18, docs + +[testenv] +whitelist_externals = git +deps = + -rnearley-requirements.txt + +# to always force recreation and avoid unexpected side effects +recreate=True + +commands= + git submodule sync -q + git submodule update --init + python -m tests \ No newline at end of file