Use tox-travis to simplify the whole thing

This commit is contained in:
Alexis Métaireau 2017-10-23 18:12:49 +02:00
parent b542d35b0b
commit 61f7c6b21f
2 changed files with 13 additions and 12 deletions

View file

@ -1,15 +1,9 @@
language: python language: python
before_script:
- pyenv global $TRAVIS_PYTHON_VERSION
script: tox script: tox
before_install:
- pyenv global system 3.5
- export PATH=$PYENV_ROOT/bin:$PATH
install: install:
- pip install tox - pip install tox-travis
env: python:
- TOXENV=py27 - "2.7"
- TOXENV=py34 - "3.4"
- TOXENV=py35 - "3.5"
- TOXENV=py36 - "3.6"
- TOXENV=docs

View file

@ -26,3 +26,10 @@ deps =
[flake8] [flake8]
exclude = migrations exclude = migrations
max_line_length = 100 max_line_length = 100
[travis]
python =
2.7: py27
3.4: py34
3.5: py35
3.6: py36, docs, lint