ci 520 B

123456789101112131415161718
  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 --volume="/var/run/docker.sock:/var/run/docker.sock" --volume="$(pwd)/.git:/code/.git" -e "TAG=$TAG" --entrypoint="script/ci" "$TAG"
  8. set -e
  9. >&2 echo "Validating DCO"
  10. script/validate-dco
  11. export DOCKER_VERSIONS=all
  12. . script/test-versions
  13. >&2 echo "Building Linux binary"
  14. su -c script/build-linux-inner user