Skip to content

Commit e0f8690

Browse files
sgngitster
authored andcommitted
travis: build and test on Linux with musl libc and busybox
Signed-off-by: Đoàn Trần Công Danh <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c3bc449 commit e0f8690

File tree

5 files changed

+24
-0
lines changed

5 files changed

+24
-0
lines changed

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ matrix:
3333
- docker
3434
before_install:
3535
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
3644
- env: jobname=StaticAnalysis
3745
os: linux
3846
compiler:

ci/install-docker-dependencies.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@ Linux32)
1111
libssl-dev libexpat-dev gettext python >/dev/null
1212
'
1313
;;
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+
;;
1418
esac

ci/lib.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,11 @@ GIT_TEST_GETTEXT_POISON)
195195
Linux32)
196196
CC=gcc
197197
;;
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+
;;
198203
esac
199204

200205
MAKEFLAGS="$MAKEFLAGS CC=${CC:-cc}"

ci/run-docker-build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ case "$jobname" in
1818
Linux32)
1919
switch_cmd="linux32 --32bit i386"
2020
;;
21+
linux-musl)
22+
switch_cmd=
23+
useradd () { adduser -D "$@"; }
24+
;;
2125
*)
2226
exit 1
2327
;;

ci/run-docker.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ case "$jobname" in
99
Linux32)
1010
CI_CONTAINER="daald/ubuntu32:xenial"
1111
;;
12+
linux-musl)
13+
CI_CONTAINER=alpine
14+
;;
1215
*)
1316
exit 1
1417
;;

0 commit comments

Comments
 (0)