From 661f7cde92e43b293d70ee5af5f5730624ce0eef Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 8 Oct 2015 06:12:46 +0200 Subject: [PATCH] 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". --- .travis.yml | 3 +-- tox.ini | 6 ++++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index ad413e1dc..4651912e3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: diff --git a/tox.ini b/tox.ini index 55c8af674..b4364d608 100644 --- a/tox.ini +++ b/tox.ini @@ -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