From a83ef077d3f569ac72d25dc8afe08d8a2428e21f Mon Sep 17 00:00:00 2001 From: Claudiu Popa Date: Sat, 29 Sep 2018 10:30:45 +0200 Subject: Separate pyenchant into a separate step pyenchant is no longer maintained and doesn't seem to install correctly on all systems. But it is installable on Travis, so instead we separated that from the main test suite in order to run it in its own step. Close #1900 --- .travis.yml | 3 ++- tox.ini | 14 +++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4effb1f18..8730c8705 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,6 +27,8 @@ jobs: - python: 3.7 env: TOXENV=py37 dist: xenial + - python: 3.6 + env: TOXENV=spelling - stage: tests-pypy python: pypy3.5-5.8.0 env: TOXENV=pypy @@ -57,4 +59,3 @@ notifications: email: on_success: always on_failure: always - diff --git a/tox.ini b/tox.ini index c7d7d3182..9972f22f4 100644 --- a/tox.ini +++ b/tox.ini @@ -32,7 +32,6 @@ deps = mccabe pytest pytest-xdist - pyenchant setenv = COVERAGE_FILE = {toxinidir}/.coverage.{envname} @@ -46,6 +45,19 @@ commands = python -c "import os;cov_strip_abspath = open(os.environ['COVERAGE_FILE'], 'r').read().replace('.tox' + os.sep + os.path.relpath('{envsitepackagesdir}', '{toxworkdir}') + os.sep, '');open(os.environ['COVERAGE_FILE'], 'w').write(cov_strip_abspath)" changedir = {toxworkdir} + +[testenv:spelling] +deps = + https://github.com/PyCQA/astroid/tarball/master#egg=astroid-master-2.0 + pytest + pytest-xdist + pyenchant + +commands = + python -Wi -m pytest {envsitepackagesdir}/pylint/test/ {posargs:} -k unittest_checker_spelling + +changedir = {toxworkdir} + [testenv:coveralls] setenv = COVERAGE_FILE = {toxinidir}/.coverage -- cgit v1.2.1