summaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorLibravatar Đoàn Trần Công Danh <congdanhqx@gmail.com>2020-04-04 08:08:50 +0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-04-06 13:44:42 -0700
commite0f8690dee7ec9373657eb2ecef9c8d88d0ece08 (patch)
treefa88264a796d7b32179ff93bc50366573f58f931 /ci
parentci/linux32: libify install-dependencies step (diff)
downloadtgif-e0f8690dee7ec9373657eb2ecef9c8d88d0ece08.tar.xz
travis: build and test on Linux with musl libc and busybox
Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ci')
-rwxr-xr-xci/install-docker-dependencies.sh4
-rwxr-xr-xci/lib.sh5
-rwxr-xr-xci/run-docker-build.sh4
-rwxr-xr-xci/run-docker.sh3
4 files changed, 16 insertions, 0 deletions
diff --git a/ci/install-docker-dependencies.sh b/ci/install-docker-dependencies.sh
index a104c61d29..26a6689766 100755
--- a/ci/install-docker-dependencies.sh
+++ b/ci/install-docker-dependencies.sh
@@ -11,4 +11,8 @@ Linux32)
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
diff --git a/ci/lib.sh b/ci/lib.sh
index 8048335281..e9a5c51425 100755
--- a/ci/lib.sh
+++ b/ci/lib.sh
@@ -195,6 +195,11 @@ GIT_TEST_GETTEXT_POISON)
Linux32)
CC=gcc
;;
+linux-musl)
+ CC=gcc
+ MAKEFLAGS="$MAKEFLAGS PYTHON_PATH=/usr/bin/python3 USE_LIBPCRE2=Yes"
+ MAKEFLAGS="$MAKEFLAGS NO_REGEX=Yes ICONV_OMITS_BOM=Yes"
+ ;;
esac
MAKEFLAGS="$MAKEFLAGS CC=${CC:-cc}"
diff --git a/ci/run-docker-build.sh b/ci/run-docker-build.sh
index 4a153492ba..8d47a5fda3 100755
--- a/ci/run-docker-build.sh
+++ b/ci/run-docker-build.sh
@@ -18,6 +18,10 @@ case "$jobname" in
Linux32)
switch_cmd="linux32 --32bit i386"
;;
+linux-musl)
+ switch_cmd=
+ useradd () { adduser -D "$@"; }
+ ;;
*)
exit 1
;;
diff --git a/ci/run-docker.sh b/ci/run-docker.sh
index 3881f99b53..37fa372052 100755
--- a/ci/run-docker.sh
+++ b/ci/run-docker.sh
@@ -9,6 +9,9 @@ case "$jobname" in
Linux32)
CI_CONTAINER="daald/ubuntu32:xenial"
;;
+linux-musl)
+ CI_CONTAINER=alpine
+ ;;
*)
exit 1
;;