ci 678 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. # This should be run inside a container built from the Dockerfile
  3. # at the root of the repo:
  4. #
  5. # $ TAG="docker-compose:$(git rev-parse --short HEAD)"
  6. # $ docker build -t "$TAG" .
  7. # $ docker run --rm \
  8. # --volume="/var/run/docker.sock:/var/run/docker.sock" \
  9. # --volume="$(pwd)/.git:/code/.git" \
  10. # -e "TAG=$TAG" \
  11. # --entrypoint="script/test/ci" "$TAG"
  12. set -ex
  13. docker version
  14. export DOCKER_VERSIONS=${DOCKER_VERSIONS:-all}
  15. STORAGE_DRIVER=${STORAGE_DRIVER:-overlay}
  16. export DOCKER_DAEMON_ARGS="--storage-driver=$STORAGE_DRIVER"
  17. GIT_VOLUME="--volumes-from=$(hostname)"
  18. . script/test/all
  19. >&2 echo "Building Linux binary"
  20. . script/build/linux-entrypoint