summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2018-09-29 10:30:45 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2018-09-29 10:30:45 +0200
commita83ef077d3f569ac72d25dc8afe08d8a2428e21f (patch)
tree1556f2e4b0c09e02f9632c126b85701f63ebb09b
parentd9a115d7537c55cdff910eee97c683d4dd795634 (diff)
downloadpylint-git-a83ef077d3f569ac72d25dc8afe08d8a2428e21f.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.yml3
-rw-r--r--tox.ini14
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