[TIP] [tox] multiple overlapping axis with Jenkins (Chris Withers)

holger krekel holger at merlinux.eu
Thu Jan 5 13:38:23 PST 2012


Hi Chris,

On Thu, Jan 05, 2012 at 09:27 +0000, Chris Withers wrote:
> On 05/01/2012 07:43, holger krekel wrote:
> >Additionally there are plans to suport a host-specific settings
> >file which could specify the full path independently of the cross-platform
> >tox.ini file.
> 
> I think looking in environment variables such as PYTHON27_LOCATION,
> PYPY_LOCATION, etc, would be more useful.
>
> That way, a plugin such as ShiningPanda can set these based on its
> configuration, and if someone isn't using ShiningPanda they can use
> node-specific environment variables to set them manually...
> 
> ...and of course, if they're not using Jenkins at all, they can just
> set them in the user environment on each type of host :-)

Env Variables are one solution, a host specific config file another.
Such a file could be specified on the command line and/or looked up
by default in places like $USER/.toxhost.ini or /etc/toxhost.ini.
It could contain

    py25.basepython = /path/to/python2.5
    py26.basepython = ...
 
definitions.  They would override the definitions of the tox.ini file.
There could be a generic environment variable to a TOX_HOSTFILE=... setting 
to point to such a file as well. Would this work for you?

> Would that be hard to implement?

Don't think so.

holger

> cheers,
> 
> Chris
> 
> -- 
> Simplistix - Content Management, Batch Processing & Python Consulting
>             - http://www.simplistix.co.uk
> 



More information about the testing-in-python mailing list