Run eslint via tox.

This makes the .travis.yml simpler again and fixes the fact that the exit
status of a command was ignored because of the "|| true".
This commit is contained in:
Florian Bruhin 2015-10-08 06:12:46 +02:00
parent 224ab3237d
commit 661f7cde92
2 changed files with 7 additions and 2 deletions

View File

@ -36,8 +36,7 @@ install:
- python scripts/dev/ci_install.py
script:
- '[[ $TESTENV != eslint ]] && tox -e $TESTENV -- -p no:sugar tests || true'
- '[[ $TESTENV == eslint ]] && eslint qutebrowser || true'
- tox -e $TESTENV -- -p no:sugar tests
matrix:
exclude:

View File

@ -194,3 +194,9 @@ deps =
commands =
{envpython} scripts/link_pyqt.py --tox {envdir}
{envpython} scripts/dev/freeze.py {posargs}
[testenv:eslint]
skip_install = True
deps =
whitelist_externals = eslint
commands = eslint qutebrowser