]> git.ipfire.org Git - thirdparty/git.git/commitdiff
ci: make MAKEFLAGS available inside the Docker container in the Linux32 job
authorSZEDER Gábor <szeder.dev@gmail.com>
Thu, 2 Apr 2020 13:04:00 +0000 (20:04 +0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 2 Apr 2020 18:01:26 +0000 (11:01 -0700)
Once upon a time we ran 'make --jobs=2 ...' to build Git, its
documentation, or to apply Coccinelle semantic patches.  Then commit
eaa62291ff (ci: inherit --jobs via MAKEFLAGS in run-build-and-tests,
2019-01-27) came along, and started using the MAKEFLAGS environment
variable to centralize setting the number of parallel jobs in
'ci/libs.sh'.  Alas, it forgot to update 'ci/run-linux32-docker.sh' to
make MAKEFLAGS available inside the Docker container running the 32
bit Linux job, and, consequently, since then that job builds Git
sequentially, and it ignores any Makefile knobs that we might set in
MAKEFLAGS (though we don't set any for the 32 bit Linux job at the
moment).

So update the 'docker run' invocation in 'ci/run-linux32-docker.sh' to
make MAKEFLAGS available inside the Docker container as well.  Set
CC=gcc for the 32 bit Linux job, because that's the compiler installed
in the 32 bit Linux Docker image that we use (Travis CI nowadays sets
CC=clang by default, but clang is not installed in this image).

Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ci/lib.sh
ci/run-linux32-docker.sh

index a90d0dc0fd2ae30ba59aa7f2262f884f43dc5ee5..804833528148ea376c7a6c139768beedc43776da 100755 (executable)
--- a/ci/lib.sh
+++ b/ci/lib.sh
@@ -192,6 +192,9 @@ osx-clang|osx-gcc)
 GIT_TEST_GETTEXT_POISON)
        export GIT_TEST_GETTEXT_POISON=true
        ;;
+Linux32)
+       CC=gcc
+       ;;
 esac
 
 MAKEFLAGS="$MAKEFLAGS CC=${CC:-cc}"
index 751acfcf8a8c5c894f40e7fe2e96b8a395f2eab4..ebb18fa7472549340b7f4d08d8b374a8317d18ee 100755 (executable)
@@ -20,6 +20,7 @@ docker run \
        --env GIT_PROVE_OPTS \
        --env GIT_TEST_OPTS \
        --env GIT_TEST_CLONE_2GB \
+       --env MAKEFLAGS \
        --env cache_dir="$container_cache_dir" \
        --volume "${PWD}:/usr/src/git" \
        --volume "$cache_dir:$container_cache_dir" \