Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/msabramo/travis2tox

Convert a .travis.yml file for a Python project to a tox.ini file
https://github.com/msabramo/travis2tox

Last synced: 28 days ago
JSON representation

Convert a .travis.yml file for a Python project to a tox.ini file

Awesome Lists containing this project

README

        

travis2tox
==========

.. image:: https://secure.travis-ci.org/msabramo/travis2tox.png
:target: http://travis-ci.org/msabramo/travis2tox

For a Python project, take a ``.travis.yml`` file (`Travis CI`_) and output a
``tox.ini`` file (`Tox`_).

Example
-------

::

$ cat .travis.yml
language: python

python:
- 2.6
- 2.7
- 3.2
- pypy

script: python setup.py test

$ travis2tox .travis.yml
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.

[tox]
envlist = py26, py27, py32, pypy

[testenv]
commands = python setup.py test

.. _Travis CI: http://travis-ci.org/
.. _Tox: http://tox.testrun.org/