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.5 (2016-07-28)
Prefer TRAVIS_PYTHON_VERSION to sys.version_info (#14) - thanks to @jayvdb for the code review
Add Python 3.2 support (#17) - thanks to @jayvdb for the bug report, discussion, and code review
Support PyPy3 v5.2 with setuptools hackery (#24) - thanks to @jayvdb for the pull request
0.4 (2016-02-10)
Generate default env from sys.version_info (#9) - thanks to @jayvdb for the bug report
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 Distributions
File details
Details for the file tox-travis-0.5.tar.gz
.
File metadata
- Download URL: tox-travis-0.5.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d51f7061ab69772ee331920098c4db50dc5df43dd4bafc4fc73a561e9b535abf |
|
MD5 | 55e9a3fef916eccfe322f18f45d1e05a |
|
BLAKE2b-256 | aaf45b534dacbc82899439ef9a0548534a874d08b5d1b34adb48b83cd24b6af9 |
File details
Details for the file tox_travis-0.5-py3.5.egg
.
File metadata
- Download URL: tox_travis-0.5-py3.5.egg
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f988d94ff6955d6e601c734ea201c35c65662e5b85dbfa2991a7f81f5b8911f2 |
|
MD5 | 2fc2cc57296b47e3ddb415e6716ac0d7 |
|
BLAKE2b-256 | 9d671fd3f0b32d80d0e892cfd52835b179327d98651aaa9de4a919149a6995ff |
File details
Details for the file tox_travis-0.5-py2.py3-none-any.whl
.
File metadata
- Download URL: tox_travis-0.5-py2.py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ad57d92b4c6348ba958e198577131bde0578ed21e12c575d302aa006821b4ab |
|
MD5 | 961d8b1d7f5297ed9723adec4bb86751 |
|
BLAKE2b-256 | 6c9b6c5a3a6c678345797f48777cf7389195a7d1ac6aaa2100fda94324664509 |