@matheusbsbs / matheus-bagliano / commits / e0f8690dee
Fork 0

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>

Đoàn Trần Công Danh committed Apr 4, 2020 at 08:08 UTC e0f8690dee7ec9373657eb2ecef9c8d88d0ece08
5 files changed +24
.travis.yml
+8
@@ -33,6 +33,14 @@ matrix:
33 - docker
34 before_install:
35 script: ci/run-docker.sh
36 + - env: jobname=linux-musl
37 + os: linux
38 + compiler:
39 + addons:
40 + services:
41 + - docker
42 + before_install:
43 + script: ci/run-docker.sh
44 - env: jobname=StaticAnalysis
45 os: linux
46 compiler:
ci/install-docker-dependencies.sh
+4
@@ -11,4 +11,8 @@ Linux32)
11 libssl-dev libexpat-dev gettext python >/dev/null
12 '
13 ;;
14 +linux-musl)
15 + apk add --update build-base curl-dev openssl-dev expat-dev gettext \
16 + pcre2-dev python3 musl-libintl perl-utils ncurses >/dev/null
17 + ;;
18 esac
ci/lib.sh
+5
@@ -195,6 +195,11 @@ GIT_TEST_GETTEXT_POISON)
195 Linux32)
196 CC=gcc
197 ;;
198 +linux-musl)
199 + CC=gcc
200 + MAKEFLAGS="$MAKEFLAGS PYTHON_PATH=/usr/bin/python3 USE_LIBPCRE2=Yes"
201 + MAKEFLAGS="$MAKEFLAGS NO_REGEX=Yes ICONV_OMITS_BOM=Yes"
202 + ;;
203 esac
204
205 MAKEFLAGS="$MAKEFLAGS CC=${CC:-cc}"
ci/run-docker-build.sh
+4
@@ -18,6 +18,10 @@ case "$jobname" in
18 Linux32)
19 switch_cmd="linux32 --32bit i386"
20 ;;
21 +linux-musl)
22 + switch_cmd=
23 + useradd () { adduser -D "$@"; }
24 + ;;
25 *)
26 exit 1
27 ;;
ci/run-docker.sh
+3
@@ -9,6 +9,9 @@ case "$jobname" in
9 Linux32)
10 CI_CONTAINER="daald/ubuntu32:xenial"
11 ;;
12 +linux-musl)
13 + CI_CONTAINER=alpine
14 + ;;
15 *)
16 exit 1
17 ;;