mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 02:36:17 +03:00
Make nose run tests in parallel
This commit is contained in:
parent
1056bd781a
commit
24cd3d2cfa
|
@ -3,7 +3,7 @@ language: python
|
||||||
notifications:
|
notifications:
|
||||||
irc: "chat.freenode.net#pil"
|
irc: "chat.freenode.net#pil"
|
||||||
|
|
||||||
env: MAX_CONCURRENCY=4
|
env: MAX_CONCURRENCY=4 NOSE_PROCESSES=4 NOSE_PROCESS_TIMEOUT=30
|
||||||
|
|
||||||
python:
|
python:
|
||||||
- "pypy"
|
- "pypy"
|
||||||
|
|
|
@ -20,5 +20,13 @@ if len(sys.argv) == 1:
|
||||||
if ('--no-path-adjustment' not in sys.argv) and ('-P' not in sys.argv):
|
if ('--no-path-adjustment' not in sys.argv) and ('-P' not in sys.argv):
|
||||||
sys.argv.insert(1, '--no-path-adjustment')
|
sys.argv.insert(1, '--no-path-adjustment')
|
||||||
|
|
||||||
|
if 'NOSE_PROCESSES' not in os.environ:
|
||||||
|
for arg in sys.argv:
|
||||||
|
if '--processes' in arg:
|
||||||
|
break
|
||||||
|
else: # for
|
||||||
|
sys.argv.insert(1, '--processes=-1') # -1 == number of cores
|
||||||
|
sys.argv.insert(1, '--process-timeout=30')
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
nose.main()
|
nose.main()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user