mirror of
https://github.com/git/git
synced 2024-08-27 11:39:22 +00:00
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>
This commit is contained in:
parent
c3bc449eb1
commit
e0f8690dee
|
@ -33,6 +33,14 @@ matrix:
|
||||||
- docker
|
- docker
|
||||||
before_install:
|
before_install:
|
||||||
script: ci/run-docker.sh
|
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
|
- env: jobname=StaticAnalysis
|
||||||
os: linux
|
os: linux
|
||||||
compiler:
|
compiler:
|
||||||
|
|
|
@ -11,4 +11,8 @@ Linux32)
|
||||||
libssl-dev libexpat-dev gettext python >/dev/null
|
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
|
esac
|
||||||
|
|
|
@ -195,6 +195,11 @@ GIT_TEST_GETTEXT_POISON)
|
||||||
Linux32)
|
Linux32)
|
||||||
CC=gcc
|
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
|
esac
|
||||||
|
|
||||||
MAKEFLAGS="$MAKEFLAGS CC=${CC:-cc}"
|
MAKEFLAGS="$MAKEFLAGS CC=${CC:-cc}"
|
||||||
|
|
|
@ -18,6 +18,10 @@ case "$jobname" in
|
||||||
Linux32)
|
Linux32)
|
||||||
switch_cmd="linux32 --32bit i386"
|
switch_cmd="linux32 --32bit i386"
|
||||||
;;
|
;;
|
||||||
|
linux-musl)
|
||||||
|
switch_cmd=
|
||||||
|
useradd () { adduser -D "$@"; }
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -9,6 +9,9 @@ case "$jobname" in
|
||||||
Linux32)
|
Linux32)
|
||||||
CI_CONTAINER="daald/ubuntu32:xenial"
|
CI_CONTAINER="daald/ubuntu32:xenial"
|
||||||
;;
|
;;
|
||||||
|
linux-musl)
|
||||||
|
CI_CONTAINER=alpine
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue