Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (
Help us improve Python packaging - Donate today!

Seamless integration of Tox into Travis CI

Project Description

tox-travis is a simple plugin for tox that allows you to use Travis CI’s multiple python version feature as well as tox’s full configurability in a straightforward way.


Configure the Python versions to test with in travis.yml:

sudo: false
language: python
  - "2.7"
  - "3.4"
install: pip install tox-travis
script: tox

And it will run the appropriate testenvs, which by default are any declared env with py27 or py34 as factors of the name. If no environments match a given factor, the py27 or py34 envs are used as a fallback.

Advanced Configuration

To customize what environments tox will run on Travis, add a section to tox.ini telling it what environments to run under which versions of Python:

envlist = py{27,34}-django{17,18}, docs

2.7 = py27
3.4 = py34, docs

This would run the Python 2.7 variants under 2.7, and the Python 3.4 variants and the docs env under 3.4.

Note that Travis won’t run all the envs simultaneously, because it’s build matrix is only aware of the Python versions. Only one Travis build will be run per Python version, unless other settings are sepecified in the Travis build matrix.

0.2 (2015-12-10)

  • Choose testenvs from tox.ini by matching factors.
    • This is a slightly backward incompatible change
    • If a Python version isn’t declared in the tox.ini, it may not be run.
    • Additional envs may be run if they also match the factors, for example, py34-django17 and py34-django18 will both match the default for Python 3.4 (py34).
    • Factor matching extends to overrides set in tox.ini.

0.1 (2015-05-21)

  • Initial Release

Release History

This version
History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(4.8 kB) Copy SHA256 Hash SHA256
py2.py3 Wheel Dec 11, 2015
(3.7 kB) Copy SHA256 Hash SHA256
Source Dec 11, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting