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

Olivier Mansion olivier.mansion at shiningpanda.com
Fri Jan 6 01:15:49 PST 2012

2012/1/5 holger krekel <holger at merlinux.eu>:
> On Wed, Jan 04, 2012 at 22:29 +0000, Chris Withers wrote:
>> >I just added a "TOXENV pattern" field on the Tox Builder of the
>> >ShiningPanda plugin for Jenkins.
>> >
>> >I think this should do the job:
>> >
>> >http://dl.dropbox.com/u/6834701/ShiningPanda-plugin-toxenvPattern.png
>> This looks excellent!
>> However (and this may just be my lack of detailed tox knowledge),
>> how do I tell tox where to find the Python I want to to use for a
>> particular INTERPRETER from your example?
> those are auto-discovered at the moment:
> * on windows the default is c:\\PythonXYZ\python.exe
> * on posix the PATH variable is used to try find pythonX.Y
> 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.
> HTH,
> holger
>> My ideal world would be for Tox to use the Pythons I set up for
>> ShiningPanda, since each version of python lives in a different
>> place on each of the OS (Linux, Win, Mac) that I want to test
>> against...

The "Tox Builder" add all the Python installations declared in "Manage
Jenkins > Configure System > Python" in the PATH. So Tox is able to
find these installations following the process that Holger described
in his mail.

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

+1 for the TOX_HOSTFILE


More information about the testing-in-python mailing list