Merge pull request #853 from ctiller/travis-c

Better parallelization for C
pull/858/head
Nicolas Noble 10 years ago
commit 878e4b61ae
  1. 4
      .travis.yml
  2. 2
      tools/run_tests/jobset.py

@ -1,4 +1,6 @@
language: cpp language: cpp
script: ./tools/run_tests/run_tests.py -lc -t -j2 script:
- ./tools/run_tests/run_tests.py -l c -t -j 16 -c dbg
- ./tools/run_tests/run_tests.py -l c -t -j 16 -c opt
notifications: notifications:
email: false email: false

@ -292,7 +292,7 @@ def run(cmdlines,
if not travis: if not travis:
cmdlines = shuffle_iteratable(cmdlines) cmdlines = shuffle_iteratable(cmdlines)
else: else:
cmdlines = sorted(cmdlines) cmdlines = sorted(cmdlines, key=lambda x: x.shortname)
for cmdline in cmdlines: for cmdline in cmdlines:
if not js.start(cmdline): if not js.start(cmdline):
break break

Loading…
Cancel
Save