]> git.ipfire.org Git - thirdparty/git.git/commit
ci: skip unavailable external software
authorJunio C Hamano <gitster@pobox.com>
Thu, 24 Apr 2025 23:10:47 +0000 (16:10 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 24 Apr 2025 23:12:09 +0000 (16:12 -0700)
commitb0026daf1e60ebff7f1d4a840c158b3a05ecffcd
tree0f34f4fe86311cf461a94e430e37fb53b18bcecc
parent683c54c999c301c2cd6f715c411407c413b1d84e
ci: skip unavailable external software

The ci/install-dependencies.sh script used in a very early phase of
our CI jobs downloads Perforce, Git-LFS, and JGit, used for running
the test scripts.  The test framework is prepared to properly skip
the tests that depend on these external software, but the CI script
is unnecessarily strict (due to its use of "set -e" in ci/lib.sh)
and fails the entire CI run before even starting to test the rest of
the system.

Notice a failure to download to any of these external software, but
keep going.  We need to be careful about cleaning after a failed
wget, as a later part of the script that does:

        if type jgit >/dev/null 2>&1
        then
                echo "$(tput setaf 6)JGit Version$(tput sgr0)"
                jgit version
        else
                echo >&2 "WARNING: JGit wasn't installed, see above for clues why"
        fi

will (surprise!) succeed running "type jgit", and then fail with
"jgit version", taking the whole thing down due to "set -e".

Signed-off-by: Junio C Hamano <gitster@pobox.com>
ci/install-dependencies.sh