--- a/.gitlab-ci.yml Sat Feb 29 15:17:13 2020 +0700
+++ b/.gitlab-ci.yml Sat Feb 29 15:17:31 2020 +0700
@@ -9,7 +9,8 @@
- hg pull -R /ci/repos/mercurial/
- hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')")
- hg -R /ci/repos/mercurial/ update "$hg_rev"
- - (cd tests; /ci/repos/mercurial/tests/run-tests.py --color=always)
+ - jobs=$(python -c 'import multiprocessing; print multiprocessing.cpu_count()')
+ - (cd tests; /ci/repos/mercurial/tests/run-tests.py -j $jobs --color=always)
tests-py2-pure:
image: octobus/ci-py2-hgext3rd
@@ -17,4 +18,5 @@
- hg pull -R /ci/repos/mercurial/
- hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')")
- hg -R /ci/repos/mercurial/ update "$hg_rev"
- - (cd tests; /ci/repos/mercurial/tests/run-tests.py --color=always --pure)
+ - jobs=$(python -c 'import multiprocessing; print multiprocessing.cpu_count()')
+ - (cd tests; /ci/repos/mercurial/tests/run-tests.py -j $jobs --color=always --pure)