git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
blob 92b488ff2729f174408b8e5b795bc3a305f371ae 920 bytes (raw)
name: ci/run-linux32-build.sh 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
 
#!/bin/sh
#
# Build and test Git in a 32-bit environment
#
# Usage:
#   run-linux32-build.sh [host-user-id]
#

set -x

# Update packages to the latest available versions
linux32 --32bit i386 sh -c '
    apt update >/dev/null &&
    apt install -y build-essential libcurl4-openssl-dev libssl-dev \
	libexpat-dev gettext python >/dev/null
' &&

# If this script runs inside a docker container, then all commands are
# usually executed as root. Consequently, the host user might not be
# able to access the test output files.
# If a host user id is given, then create a user "ci" with the host user
# id to make everything accessible to the host user.
HOST_UID=$1 &&
CI_USER=${USER:-ci} &&
test -z "$HOST_UID" || useradd -u $HOST_UID $CI_USER &&

# Build and test
linux32 --32bit i386 su -m -l $CI_USER -c '
    cd /usr/src/git &&
    ln -s /tmp/travis-cache/.prove t/.prove &&
    make --jobs=2 &&
    make --quiet test
'

debug log:

solving 92b488ff27 ...
found 92b488ff27 in https://public-inbox.org/git/20180118150014.GA2097@ash/
found c19c50c1c9 in https://80x24.org/mirrors/git.git
preparing index
index prepared:
100755 c19c50c1c9a57c14c07ffe4f5a061bb764e51aeb	ci/run-linux32-build.sh

applying [1/1] https://public-inbox.org/git/20180118150014.GA2097@ash/
diff --git a/ci/run-linux32-build.sh b/ci/run-linux32-build.sh
index c19c50c1c9..92b488ff27 100755

Checking patch ci/run-linux32-build.sh...
Applied patch ci/run-linux32-build.sh cleanly.

index at:
100755 92b488ff2729f174408b8e5b795bc3a305f371ae	ci/run-linux32-build.sh

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).