ci/linux32: libify install-dependencies step
[git] / ci / run-docker.sh
1 #!/bin/sh
2 #
3 # Download and run Docker image to build and test Git
4 #
5
6 . ${0%/*}/lib.sh
7
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"
18
19 # Use the following command to debug the docker build locally:
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"
22 # root@container:/# export jobname=<jobname>
23 # root@container:/# /usr/src/git/ci/run-docker-build.sh <host-user-id>
24
25 container_cache_dir=/tmp/travis-cache
26
27 docker run \
28         --interactive \
29         --env DEVELOPER \
30         --env DEFAULT_TEST_TARGET \
31         --env GIT_PROVE_OPTS \
32         --env GIT_TEST_OPTS \
33         --env GIT_TEST_CLONE_2GB \
34         --env MAKEFLAGS \
35         --env jobname \
36         --env cache_dir="$container_cache_dir" \
37         --volume "${PWD}:/usr/src/git" \
38         --volume "$cache_dir:$container_cache_dir" \
39         "$CI_CONTAINER" \
40         /usr/src/git/ci/run-docker-build.sh $(id -u $USER)
41
42 check_unignored_build_artifacts
43
44 save_good_tree