diff options
author | Stephan Obermann <stephan.obermann@gmail.com> | 2016-06-25 18:47:48 +0200 |
---|---|---|
committer | Stephan Obermann <stephan.obermann@gmail.com> | 2016-06-25 18:47:48 +0200 |
commit | 214ed8a7cde5f68882a566df86ce3878fa66ec77 (patch) | |
tree | f0e5576ab98a73320aa9795930f6dc63b1ee95e2 /doc/example/jenkins.txt | |
parent | b50a6ecf3077bd5b4f8fe9a6a740d8fd154c5753 (diff) | |
parent | 14ae8802f0241dca1f4d775646b25cc56769034d (diff) | |
download | tox-214ed8a7cde5f68882a566df86ce3878fa66ec77.tar.gz |
Merged hpk42/tox into default
Diffstat (limited to 'doc/example/jenkins.txt')
-rw-r--r-- | doc/example/jenkins.txt | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/doc/example/jenkins.txt b/doc/example/jenkins.txt index b93bec4..94cb22d 100644 --- a/doc/example/jenkins.txt +++ b/doc/example/jenkins.txt @@ -44,7 +44,7 @@ for example with ``py.test`` it is done like this: .. note:: This feature is broken currently because "toxbootstrap.py" - has been removed. Please file an issue if you'd like to + has been removed. Please file an issue if you'd like to see it back. If you manage many Jenkins slaves and want to use the latest officially @@ -151,6 +151,24 @@ So if you are using defaults you can re-use and debug exactly the same ``tox.ini`` file and make use of automatic sharing of your artifacts between runs or Jenkins jobs. + +Avoiding the "path too long" error with long shebang lines +--------------------------------------------------------------- + +If you are using Jenkins builds you might run into the issue +that tox can not call ``pip`` because the so called "shebang" +line is too long. There is a limit of 127 chars on some systems. +Probably the best way to fix the problem is to use the +new ``--workdir`` option which tells tox to use a specific +directory for its virtualenvironments. Set it to some unique +enough short path. If somebody is interested to do a PR +you could add a new option to tox which uses a random +directory for storing its workdir results and removes +it after the tox run finishes. This could be used +from CI environments where you probably anyway want +to recreate everything on new runs. + + .. include:: ../links.txt |