]> git.ipfire.org Git - thirdparty/git.git/commitdiff
travis: build and test on Linux with musl libc and busybox
authorĐoàn Trần Công Danh <congdanhqx@gmail.com>
Sat, 4 Apr 2020 01:08:50 +0000 (08:08 +0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Apr 2020 20:44:42 +0000 (13:44 -0700)
Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.travis.yml
ci/install-docker-dependencies.sh
ci/lib.sh
ci/run-docker-build.sh
ci/run-docker.sh

index 069aeeff3c96eb9ec18206084675eff23ad1440f..0cfc3c3428bd37afb4b1f1cd50e80ec7b0619973 100644 (file)
@@ -33,6 +33,14 @@ matrix:
         - docker
       before_install:
       script: ci/run-docker.sh
+    - env: jobname=linux-musl
+      os: linux
+      compiler:
+      addons:
+      services:
+        - docker
+      before_install:
+      script: ci/run-docker.sh
     - env: jobname=StaticAnalysis
       os: linux
       compiler:
index a104c61d2925d33904b323168b1da2f31eeefda2..26a6689766d7f17b3d38e01de2937838430a5770 100755 (executable)
@@ -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
index 804833528148ea376c7a6c139768beedc43776da..e9a5c51425a25a533633f96147aea5cdab952f3d 100755 (executable)
--- 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}"
index 4a153492ba29b26b4209399d372740aa89177968..8d47a5fda3b1c929a68662cfca3625e63e122194 100755 (executable)
@@ -18,6 +18,10 @@ case "$jobname" in
 Linux32)
        switch_cmd="linux32 --32bit i386"
        ;;
+linux-musl)
+       switch_cmd=
+       useradd () { adduser -D "$@"; }
+       ;;
 *)
        exit 1
        ;;
index 3881f99b533017284510cc8912e4ad6dd68216d6..37fa372052ddb8a9aa9fb6a42ed3866a316a1227 100755 (executable)
@@ -9,6 +9,9 @@ case "$jobname" in
 Linux32)
        CI_CONTAINER="daald/ubuntu32:xenial"
        ;;
+linux-musl)
+       CI_CONTAINER=alpine
+       ;;
 *)
        exit 1
        ;;