Skip to content

Commit 9cf971f

Browse files
blueyedjustinmk
authored andcommitted
Travis/tox: move checkqa to tox target (#288)
1 parent e800c64 commit 9cf971f

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.travis.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ env:
1111
matrix:
1212
include:
1313
- python: 3.6
14-
env: CI_TARGET=flake
14+
env: CI_TARGET=checkqa TOXENV=checkqa
1515
python:
1616
# If the build matrix gets bigger, also update the number of runs
1717
# at the bottom of .scrutinizer.yml.
@@ -26,16 +26,12 @@ before_install:
2626
eval "$(curl -Ss https://raw.githubusercontent.com/neovim/bot-ci/master/scripts/travis-setup.sh) nightly-x64";
2727
pip install -q scrutinizer-ocular tox-travis;
2828
else
29-
pip install -q flake8 flake8-import-order flake8-docstrings pep8-naming;
29+
pip install -q tox;
3030
fi
3131
install:
3232
- pip install .
3333
script:
34-
- if [ $CI_TARGET = tests ]; then
35-
tox;
36-
else
37-
flake8 neovim;
38-
fi
34+
- tox
3935
after_script:
4036
- if [ $CI_TARGET = tests ]; then
4137
ocular;

tox.ini

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
[tox]
22
envlist = py{27,33,34,35,36}-{asyncio,pyuv},pypy
3+
34
[testenv]
45
deps=
56
nose
67
pyuv: pyuv
78
commands=nosetests
9+
10+
[testenv:checkqa]
11+
deps =
12+
flake8
13+
flake8-import-order
14+
flake8-docstrings
15+
pep8-naming
16+
commands = flake8 {posargs:neovim}

0 commit comments

Comments
 (0)