summaryrefslogtreecommitdiff
path: root/ci/run-linux32-build.sh
diff options
context:
space:
mode:
authorĐoàn Trần Công Danh <congdanhqx@gmail.com>2020-04-04 01:08:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-04-06 20:44:42 (GMT)
commit2bd1e2d273b69516a3c161671a39263589ccc9fc (patch)
tree8ea7c999df17fcb310c2f9f955348591539162f5 /ci/run-linux32-build.sh
parentffce2ebdd9ad14d1ba315592157c03ce7ebd6212 (diff)
downloadgit-2bd1e2d273b69516a3c161671a39263589ccc9fc.zip
git-2bd1e2d273b69516a3c161671a39263589ccc9fc.tar.gz
git-2bd1e2d273b69516a3c161671a39263589ccc9fc.tar.bz2
ci/linux32: parameterise command to switch arch
In a later patch, the remaining of this command will be re-used for the CI job for linux with musl libc. Allow customisation of the emulator, now. 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/run-linux32-build.sh')
-rwxr-xr-xci/run-linux32-build.sh13
1 files changed, 11 insertions, 2 deletions
diff --git a/ci/run-linux32-build.sh b/ci/run-linux32-build.sh
index 7f98561..44bb332 100755
--- a/ci/run-linux32-build.sh
+++ b/ci/run-linux32-build.sh
@@ -14,8 +14,17 @@ then
exit 1
fi
+case "$jobname" in
+Linux32)
+ switch_cmd="linux32 --32bit i386"
+ ;;
+*)
+ exit 1
+ ;;
+esac
+
# Update packages to the latest available versions
-linux32 --32bit i386 sh -c '
+command $switch_cmd sh -c '
apt update >/dev/null &&
apt install -y build-essential libcurl4-openssl-dev libssl-dev \
libexpat-dev gettext python >/dev/null
@@ -51,7 +60,7 @@ else
fi
# Build and test
-linux32 --32bit i386 su -m -l $CI_USER -c "
+command $switch_cmd su -m -l $CI_USER -c "
set -ex
export DEVELOPER='$DEVELOPER'
export DEFAULT_TEST_TARGET='$DEFAULT_TEST_TARGET'