ci / run-linux32-docker.shon commit t4042: abstract away SHA-1-specific constants (e4c5652)
   1#!/bin/sh
   2#
   3# Download and run Docker image to build and test 32-bit Git
   4#
   5
   6. ${0%/*}/lib-travisci.sh
   7
   8docker pull daald/ubuntu32:xenial
   9
  10# Use the following command to debug the docker build locally:
  11# $ docker run -itv "${PWD}:/usr/src/git" --entrypoint /bin/bash daald/ubuntu32:xenial
  12# root@container:/# /usr/src/git/ci/run-linux32-build.sh <host-user-id>
  13
  14container_cache_dir=/tmp/travis-cache
  15
  16docker run \
  17        --interactive \
  18        --env DEVELOPER \
  19        --env DEFAULT_TEST_TARGET \
  20        --env GIT_PROVE_OPTS \
  21        --env GIT_TEST_OPTS \
  22        --env GIT_TEST_CLONE_2GB \
  23        --env cache_dir="$container_cache_dir" \
  24        --volume "${PWD}:/usr/src/git" \
  25        --volume "$cache_dir:$container_cache_dir" \
  26        daald/ubuntu32:xenial \
  27        /usr/src/git/ci/run-linux32-build.sh $(id -u $USER)
  28
  29check_unignored_build_artifacts
  30
  31save_good_tree