Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Introduce tox-travis #43

Merged
merged 1 commit into from
Jan 30, 2017
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
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
language: python
python:
- 2.7
- 3.3
- 3.4
- 3.5
install:
- pip install -U pip setuptools wheel
- pip install 'tox>=2.0.0,<3.0.0'
- pip install 'tox>=2.0.0,<3.0.0' 'tox-travis>=0.8,<1.0'
script:
- tox
env:
Expand Down
11 changes: 7 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
envlist = {py27,py33,py34,pypy,pypy3}-django18, {py27,py34,py35,pypy}-django{19,110}, coverage, docs, flake8, mypy
; https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django

[travis]
python =
2.7: py27-django{18,19,110}, coverage, docs, flake8
3.3: py33-django18
3.4: py34-django{19,110}
3.5: py35-django{19,110}, coverage, docs, flake8, mypy

[testenv]
deps =
django18: Django>=1.8,<1.9
Expand All @@ -13,7 +20,6 @@ commands =
passenv = CHANNELS_* TRAVIS TRAVIS_BRANCH TRAVIS_JOB_ID

[testenv:coverage]
basepython = python2.7
deps =
coveralls
coverage
Expand All @@ -25,19 +31,16 @@ commands =
coveralls

[testenv:docs]
basepython = python2.7
changedir = docs
commands =
pip install -e ..[docs]
make html

[testenv:flake8]
basepython = python2.7
deps = flake8
commands = flake8 channels/

[testenv:mypy]
basepython = python3.5
deps = mypy-lang
commands =
mypy --py2 --silent-imports -m channels
Expand Down