Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis/tox: move checkqa to tox target #288

Merged
merged 2 commits into from
Jan 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:
matrix:
include:
- python: 3.6
env: CI_TARGET=flake
env: CI_TARGET=checkqa TOXENV=checkqa
python:
# If the build matrix gets bigger, also update the number of runs
# at the bottom of .scrutinizer.yml.
Expand All @@ -26,16 +26,12 @@ before_install:
eval "$(curl -Ss https://github.com/raw/neovim/bot-ci/master/scripts/travis-setup.sh) nightly-x64";
pip install -q scrutinizer-ocular tox-travis;
else
pip install -q flake8 flake8-import-order flake8-docstrings pep8-naming;
pip install -q tox;
fi
install:
- pip install .
script:
- if [ $CI_TARGET = tests ]; then
tox;
else
flake8 neovim;
fi
- tox
after_script:
- if [ $CI_TARGET = tests ]; then
ocular;
Expand Down
9 changes: 9 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
[tox]
envlist = py{27,33,34,35,36}-{asyncio,pyuv},pypy

[testenv]
deps=
nose
pyuv: pyuv
commands=nosetests

[testenv:checkqa]
deps =
flake8
flake8-import-order
flake8-docstrings
pep8-naming
commands = flake8 {posargs:neovim}