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:
3232 services :
3333 - docker
3434 before_install :
35- script : ci/run-linux32- docker.sh
35+ script : ci/run-docker.sh
3636 - env : jobname=StaticAnalysis
3737 os : linux
3838 compiler :
Original file line number Diff line number Diff line change @@ -489,14 +489,14 @@ jobs:
489489 test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
490490
491491 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
493493
494494 sudo chmod a+r t/out/TEST-*.xml
495495 test ! -d t/failed-test-artifacts || sudo chmod a+r t/failed-test-artifacts
496496
497497 test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || sudo umount "$HOME/test-cache" || res=1
498498 exit $res
499- displayName: 'ci/run-linux32 -docker.sh'
499+ displayName: 'jobname=Linux32 ci/run-docker.sh'
500500 env:
501501 GITFILESHAREPWD: $(gitfileshare.pwd)
502502 - task : PublishTestResults@2
Original file line number Diff line number Diff line change 11#! /bin/sh
22#
3- # Build and test Git in a 32-bit environment
3+ # Build and test Git inside container
44#
55# Usage:
6- # run-linux32 -build.sh <host-user-id>
6+ # run-docker -build.sh <host-user-id>
77#
88
99set -ex
1010
1111if test $# -ne 1 || test -z " $1 "
1212then
13- echo >&2 " usage: run-linux32 -build.sh <host-user-id>"
13+ echo >&2 " usage: run-docker -build.sh <host-user-id>"
1414 exit 1
1515fi
1616
Original file line number Diff line number Diff line change 11#! /bin/sh
22#
3- # Download and run Docker image to build and test 32-bit Git
3+ # Download and run Docker image to build and test Git
44#
55
66. ${0%/* } /lib.sh
77
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 "
918
1019# 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"
1222# 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>
1424
1525container_cache_dir=/tmp/travis-cache
1626
@@ -26,8 +36,8 @@ docker run \
2636 --env cache_dir=" $container_cache_dir " \
2737 --volume " ${PWD} :/usr/src/git" \
2838 --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 )
3141
3242check_unignored_build_artifacts
3343
You can’t perform that action at this time.
0 commit comments