diff .gitlab-ci.yml @ 5640:8d93e7fc0daa mercurial-4.7

test-compat: merge mercurial-4.8 into mercurial-4.7 # no-check-commit
author Anton Shestakov <av6@dwimlabs.net>
date Sat, 31 Oct 2020 20:02:03 +0800
parents d04a9bf34b79 eed42a183d46
children 15406dfa60e1 82da27321e91
line wrap: on
line diff
--- a/.gitlab-ci.yml	Sat Oct 31 19:43:46 2020 +0800
+++ b/.gitlab-ci.yml	Sat Oct 31 20:02:03 2020 +0800
@@ -27,7 +27,8 @@
     script:
         - *prepare_hg
         - ("$PYTHON" --version)
-        - (cd tests; set -x; HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" /ci/repos/mercurial/tests/run-tests.py --color=always $RUNTEST_ARGS)
+        - jobs=$(python -c 'import multiprocessing; print multiprocessing.cpu_count()')
+        - (cd tests; set -x; HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" /ci/repos/mercurial/tests/run-tests.py -j $jobs --color=always $RUNTEST_ARGS)
 
 checks-py2:
     <<: *runtests