t1300: add a few more hairy examples of sections becoming empty
[git/debian.git] / ci / run-linux32-build.sh
blobc19c50c1c9a57c14c07ffe4f5a061bb764e51aeb
1 #!/bin/sh
3 # Build and test Git in a 32-bit environment
5 # Usage:
6 # run-linux32-build.sh [host-user-id]
9 set -x
11 # Update packages to the latest available versions
12 linux32 --32bit i386 sh -c '
13 apt update >/dev/null &&
14 apt install -y build-essential libcurl4-openssl-dev libssl-dev \
15 libexpat-dev gettext python >/dev/null
16 ' &&
18 # If this script runs inside a docker container, then all commands are
19 # usually executed as root. Consequently, the host user might not be
20 # able to access the test output files.
21 # If a host user id is given, then create a user "ci" with the host user
22 # id to make everything accessible to the host user.
23 HOST_UID=$1 &&
24 CI_USER=$USER &&
25 test -z $HOST_UID || (CI_USER="ci" && useradd -u $HOST_UID $CI_USER) &&
27 # Build and test
28 linux32 --32bit i386 su -m -l $CI_USER -c '
29 cd /usr/src/git &&
30 ln -s /tmp/travis-cache/.prove t/.prove &&
31 make --jobs=2 &&
32 make --quiet test