aboutsummaryrefslogtreecommitdiffstats
path: root/ci/install-docker-dependencies.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-04-29 16:15:28 -0700
committerJunio C Hamano <gitster@pobox.com>2020-04-29 16:15:28 -0700
commitaf986863c1ae2e306d5627f4e42cc6d2cf2a057f (patch)
treee7cf9db4f41edc5b0da13029758587cfff62a7c8 /ci/install-docker-dependencies.sh
parent3afdeef33e1d7912b8b135df2ea3fef3a3cf60bc (diff)
parente0f8690dee7ec9373657eb2ecef9c8d88d0ece08 (diff)
downloadgit-af986863c1ae2e306d5627f4e42cc6d2cf2a057f.tar.gz
Merge branch 'dd/ci-musl-libc'
A new CI job to build and run test suite on linux with musl libc has been added. * dd/ci-musl-libc: travis: build and test on Linux with musl libc and busybox ci/linux32: libify install-dependencies step ci: refactor docker runner script ci/linux32: parameterise command to switch arch ci/lib-docker: preserve required environment variables ci: make MAKEFLAGS available inside the Docker container in the Linux32 job
Diffstat (limited to 'ci/install-docker-dependencies.sh')
-rwxr-xr-xci/install-docker-dependencies.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/ci/install-docker-dependencies.sh b/ci/install-docker-dependencies.sh
new file mode 100755
index 0000000000..26a6689766
--- /dev/null
+++ b/ci/install-docker-dependencies.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# Install dependencies required to build and test Git inside container
+#
+
+case "$jobname" in
+Linux32)
+ linux32 --32bit i386 sh -c '
+ apt update >/dev/null &&
+ apt install -y build-essential libcurl4-openssl-dev \
+ libssl-dev libexpat-dev gettext python >/dev/null
+ '
+ ;;
+linux-musl)
+ apk add --update build-base curl-dev openssl-dev expat-dev gettext \
+ pcre2-dev python3 musl-libintl perl-utils ncurses >/dev/null
+ ;;
+esac