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 specified in the Travis build matrix.
0.3 (2016-01-26)
Match against testenvs that are only declared as sections (#7) thanks to @epsy
Include unmatched envs verbatim to run (also #7) thanks to @epsy again
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tox-travis-0.3.tar.gz
.
File metadata
- Download URL: tox-travis-0.3.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a61a90e3e4110ddfb48d2bb4a7fb15733e703667acf676e4d155f145892b8345 |
|
MD5 | ca8363772e0b574915ad4b0fa4b141d3 |
|
BLAKE2b-256 | 660791ec1688e42eb4eeefc37d70150dd91bc89de32182c7090d80b3b3afef59 |
File details
Details for the file tox_travis-0.3-py2.py3-none-any.whl
.
File metadata
- Download URL: tox_travis-0.3-py2.py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2161a753d7b19dc72c4cb2cedb061b586a2412f5a3d30619c1507b2d4756b238 |
|
MD5 | 9b19ba3c0cd923961e7d854a195bca39 |
|
BLAKE2b-256 | 11bbec0f36819b4c5c135adac9ca86e97ca53c333f3a18c941e9847138533d68 |