File tree Expand file tree Collapse file tree 4 files changed +22
-12
lines changed Expand file tree Collapse file tree 4 files changed +22
-12
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ matrix:
32
32
services :
33
33
- docker
34
34
before_install :
35
- script : ci/run-linux32- docker.sh
35
+ script : ci/run-docker.sh
36
36
- env : jobname=StaticAnalysis
37
37
os : linux
38
38
compiler :
Original file line number Diff line number Diff line change @@ -489,14 +489,14 @@ jobs:
489
489
test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
490
490
491
491
res=0
492
- sudo AGENT_OS="$AGENT_OS" BUILD_BUILDNUMBER="$BUILD_BUILDNUMBER" BUILD_REPOSITORY_URI="$BUILD_REPOSITORY_URI" BUILD_SOURCEBRANCH="$BUILD_SOURCEBRANCH" BUILD_SOURCEVERSION="$BUILD_SOURCEVERSION" SYSTEM_PHASENAME="$SYSTEM_PHASENAME" SYSTEM_TASKDEFINITIONSURI="$SYSTEM_TASKDEFINITIONSURI" SYSTEM_TEAMPROJECT="$SYSTEM_TEAMPROJECT" CC=$CC MAKEFLAGS="$MAKEFLAGS" bash -lxc ci/run-linux32 -docker.sh || res=1
492
+ sudo AGENT_OS="$AGENT_OS" BUILD_BUILDNUMBER="$BUILD_BUILDNUMBER" BUILD_REPOSITORY_URI="$BUILD_REPOSITORY_URI" BUILD_SOURCEBRANCH="$BUILD_SOURCEBRANCH" BUILD_SOURCEVERSION="$BUILD_SOURCEVERSION" SYSTEM_PHASENAME="$SYSTEM_PHASENAME" SYSTEM_TASKDEFINITIONSURI="$SYSTEM_TASKDEFINITIONSURI" SYSTEM_TEAMPROJECT="$SYSTEM_TEAMPROJECT" CC=$CC MAKEFLAGS="$MAKEFLAGS" jobname=Linux32 bash -lxc ci/run-docker.sh || res=1
493
493
494
494
sudo chmod a+r t/out/TEST-*.xml
495
495
test ! -d t/failed-test-artifacts || sudo chmod a+r t/failed-test-artifacts
496
496
497
497
test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || sudo umount "$HOME/test-cache" || res=1
498
498
exit $res
499
- displayName: 'ci/run-linux32 -docker.sh'
499
+ displayName: 'jobname=Linux32 ci/run-docker.sh'
500
500
env:
501
501
GITFILESHAREPWD: $(gitfileshare.pwd)
502
502
- task : PublishTestResults@2
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
#
3
- # Build and test Git in a 32-bit environment
3
+ # Build and test Git inside container
4
4
#
5
5
# Usage:
6
- # run-linux32 -build.sh <host-user-id>
6
+ # run-docker -build.sh <host-user-id>
7
7
#
8
8
9
9
set -ex
10
10
11
11
if test $# -ne 1 || test -z " $1 "
12
12
then
13
- echo >&2 " usage: run-linux32 -build.sh <host-user-id>"
13
+ echo >&2 " usage: run-docker -build.sh <host-user-id>"
14
14
exit 1
15
15
fi
16
16
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
#
3
- # Download and run Docker image to build and test 32-bit Git
3
+ # Download and run Docker image to build and test Git
4
4
#
5
5
6
6
. ${0%/* } /lib.sh
7
7
8
- docker pull daald/ubuntu32:xenial
8
+ case " $jobname " in
9
+ Linux32)
10
+ CI_CONTAINER=" daald/ubuntu32:xenial"
11
+ ;;
12
+ * )
13
+ exit 1
14
+ ;;
15
+ esac
16
+
17
+ docker pull " $CI_CONTAINER "
9
18
10
19
# Use the following command to debug the docker build locally:
11
- # $ docker run -itv "${PWD}:/usr/src/git" --entrypoint /bin/bash daald/ubuntu32:xenial
20
+ # <host-user-id> must be 0 if podman is used as drop-in replacement for docker
21
+ # $ docker run -itv "${PWD}:/usr/src/git" --entrypoint /bin/sh "$CI_CONTAINER"
12
22
# root@container:/# export jobname=<jobname>
13
- # root@container:/# /usr/src/git/ci/run-linux32 -build.sh <host-user-id>
23
+ # root@container:/# /usr/src/git/ci/run-docker -build.sh <host-user-id>
14
24
15
25
container_cache_dir=/tmp/travis-cache
16
26
@@ -26,8 +36,8 @@ docker run \
26
36
--env cache_dir=" $container_cache_dir " \
27
37
--volume " ${PWD} :/usr/src/git" \
28
38
--volume " $cache_dir :$container_cache_dir " \
29
- daald/ubuntu32:xenial \
30
- /usr/src/git/ci/run-linux32 -build.sh $( id -u $USER )
39
+ " $CI_CONTAINER " \
40
+ /usr/src/git/ci/run-docker -build.sh $( id -u $USER )
31
41
32
42
check_unignored_build_artifacts
33
43
You can’t perform that action at this time.
0 commit comments