Skip to main content

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.

Usage

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

sudo: false
language: python
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:

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

[tox:travis]
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

Project details


Download files

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

Source Distribution

tox-travis-0.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

tox_travis-0.2-py2.py3-none-any.whl (4.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file tox-travis-0.2.tar.gz.

File metadata

  • Download URL: tox-travis-0.2.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tox-travis-0.2.tar.gz
Algorithm Hash digest
SHA256 7045fe122e83da623519cbaa3f07953fb0c37d29fd64d9a499bc2014a323b401
MD5 c37975b6e35834a8e5fb0916671c8e68
BLAKE2b-256 ef2537c8c100ffa8a298a821ff8a86ee0a944c2a1af260e6faed7cc7111cd447

See more details on using hashes here.

File details

Details for the file tox_travis-0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for tox_travis-0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 db91aaf7921e04c8425535fc73e6227aec2f64db47f327a54642edba2c346249
MD5 5543c743c24783190d5ac3c6bf443d7e
BLAKE2b-256 ecb8faea142ebbd879fc8430be3d2943daaa1e1fe75157fe6f173546d292a946

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page