summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2018-09-29 10:30:45 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2019-07-16 10:53:43 +0200
commitee441be52aee0a6b5391995dbb2ffc6a4029042b (patch)
treef24cdc11e92dd1623a4a994fcb2c98e1bb4112bf
parentfe767aeb019a4ff7bddd686f60b7761bef3e8539 (diff)
downloadpylint-git-ee441be52aee0a6b5391995dbb2ffc6a4029042b.tar.gz
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
-rw-r--r--.travis.yml6
-rw-r--r--tox.ini14
2 files changed, 17 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index d97502dab..cd79b571f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -13,7 +13,10 @@ matrix:
env: TOXENV=py35
- python: 3.6
env: TOXENV=py36
- - python: pypy
+ - python: 3.6
+ env: TOXENV=spelling
+ - stage: tests-pypy
+ python: pypy3.5-5.8.0
env: TOXENV=pypy
- python: 3.5
env: TOXENV=pylint
@@ -44,4 +47,3 @@ notifications:
email:
on_success: always
on_failure: always
-
diff --git a/tox.ini b/tox.ini
index 8276d2055..46687fe8f 100644
--- a/tox.ini
+++ b/tox.ini
@@ -18,7 +18,6 @@ deps =
backports.functools_lru_cache
pytest
pytest-xdist
- pyenchant
setenv =
COVERAGE_FILE = {toxinidir}/.coverage.{envname}
@@ -32,6 +31,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