Skip to content

Commit 99a2150

Browse files
heliomeiralinsjustinmk
authored andcommitted
ci: tox (#242)
* Add tox * Run flake only on Python3.6
1 parent 171d137 commit 99a2150

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ neovim/ui/screen.so
55
build/
66
dist/
77
*.pyc
8+
.cache
9+
.eggs
10+
.tox

.travis.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ env:
1010
- CI_TARGET=tests
1111
matrix:
1212
include:
13-
- python: 2.7
14-
env: CI_TARGET=flake
15-
- python: 3.4
13+
- python: 3.6
1614
env: CI_TARGET=flake
1715
python:
1816
# If the build matrix gets bigger, also update the number of runs
@@ -21,19 +19,20 @@ python:
2119
- 3.3
2220
- 3.4
2321
- 3.5
22+
- 3.6
2423
- pypy
2524
before_install:
2625
- if [ $CI_TARGET = tests ]; then
2726
eval "$(curl -Ss https://raw.githubusercontent.com/neovim/bot-ci/master/scripts/travis-setup.sh) nightly-x64";
28-
pip install -q scrutinizer-ocular;
27+
pip install -q scrutinizer-ocular tox-travis;
2928
else
3029
pip install -q flake8 flake8-import-order flake8-docstrings pep8-naming;
3130
fi
3231
install:
3332
- pip install .
3433
script:
3534
- if [ $CI_TARGET = tests ]; then
36-
nosetests;
35+
tox;
3736
else
3837
flake8 neovim;
3938
fi

tox.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[tox]
2+
envlist = py{27,33,34,35,36}-{asyncio,pyuv},pypy
3+
[testenv]
4+
deps=
5+
nose
6+
pyuv: pyuv
7+
commands=nosetests

0 commit comments

Comments
 (0)