Skip to content

Commit

Permalink
ci: tox (#242)
Browse files Browse the repository at this point in the history
* Add tox
* Run flake only on Python3.6
  • Loading branch information
heliomeiralins authored and justinmk committed Jan 12, 2017
1 parent 171d137 commit 99a2150
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ neovim/ui/screen.so
build/
dist/
*.pyc
.cache
.eggs
.tox
9 changes: 4 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ env:
- CI_TARGET=tests
matrix:
include:
- python: 2.7
env: CI_TARGET=flake
- python: 3.4
- python: 3.6
env: CI_TARGET=flake
python:
# If the build matrix gets bigger, also update the number of runs
Expand All @@ -21,19 +19,20 @@ python:
- 3.3
- 3.4
- 3.5
- 3.6
- pypy
before_install:
- if [ $CI_TARGET = tests ]; then
eval "$(curl -Ss https://github.com/raw/neovim/bot-ci/master/scripts/travis-setup.sh) nightly-x64";
pip install -q scrutinizer-ocular;
pip install -q scrutinizer-ocular tox-travis;
else
pip install -q flake8 flake8-import-order flake8-docstrings pep8-naming;
fi
install:
- pip install .
script:
- if [ $CI_TARGET = tests ]; then
nosetests;
tox;
else
flake8 neovim;
fi
Expand Down
7 changes: 7 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[tox]
envlist = py{27,33,34,35,36}-{asyncio,pyuv},pypy
[testenv]
deps=
nose
pyuv: pyuv
commands=nosetests

0 comments on commit 99a2150

Please sign in to comment.