Skip to content

Commit eaa6229

Browse files
dschogitster
authored andcommitted
ci: inherit --jobs via MAKEFLAGS in run-build-and-tests
Let's not decide in the generic ci/ part how many jobs to run in parallel; different CI configurations would favor a different number of parallel jobs, and it is easy enough to hand that information down via the `MAKEFLAGS` variable. Signed-off-by: Johannes Schindelin <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b011fab commit eaa6229

5 files changed

+6
-5
lines changed

ci/lib.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ then
101101
BREW_INSTALL_PACKAGES="git-lfs gettext"
102102
export GIT_PROVE_OPTS="--timer --jobs 3 --state=failed,slow,save"
103103
export GIT_TEST_OPTS="--verbose-log -x --immediate"
104+
export MAKEFLAGS="--jobs=2"
104105
else
105106
echo "Could not identify CI type" >&2
106107
exit 1

ci/run-build-and-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
ln -s "$cache_dir/.prove" t/.prove
99

10-
make --jobs=2
10+
make
1111
make --quiet test
1212
if test "$jobname" = "linux-gcc"
1313
then

ci/run-linux32-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ linux32 --32bit i386 su -m -l $CI_USER -c '
5555
set -ex
5656
cd /usr/src/git
5757
test -n "$cache_dir" && ln -s "$cache_dir/.prove" t/.prove
58-
make --jobs=2
58+
make
5959
make --quiet test
6060
'

ci/run-static-analysis.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
. ${0%/*}/lib.sh
77

8-
make --jobs=2 coccicheck
8+
make coccicheck
99

1010
set +x
1111

ci/test-documentation.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ make check-builtins
1212
make check-docs
1313

1414
# Build docs with AsciiDoc
15-
make --jobs=2 doc > >(tee stdout.log) 2> >(tee stderr.log >&2)
15+
make doc > >(tee stdout.log) 2> >(tee stderr.log >&2)
1616
! test -s stderr.log
1717
test -s Documentation/git.html
1818
test -s Documentation/git.xml
@@ -24,7 +24,7 @@ check_unignored_build_artifacts
2424

2525
# Build docs with AsciiDoctor
2626
make clean
27-
make --jobs=2 USE_ASCIIDOCTOR=1 doc > >(tee stdout.log) 2> >(tee stderr.log >&2)
27+
make USE_ASCIIDOCTOR=1 doc > >(tee stdout.log) 2> >(tee stderr.log >&2)
2828
sed '/^GIT_VERSION = / d' stderr.log
2929
! test -s stderr.log
3030
test -s Documentation/git.html

0 commit comments

Comments
 (0)