buildkit/hack/test

17 lines
493 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
set -eu -o pipefail -x
iidfile=$(mktemp --tmpdir docker-iidfile.XXXXXXXXXX)
docker build --iidfile $iidfile --target integration-tests -f ./hack/dockerfiles/test.Dockerfile --force-rm .
iid=$(cat $iidfile)
docker run --rm -v /tmp --privileged $iid go test -tags no_containerd_worker ${TESTFLAGS:--v} ${TESTPKGS:-./...}
docker run --rm $iid go build ./frontend/gateway/client
docker run --rm $iid go build ./frontend/dockerfile/cmd/dockerfile-frontend
rm -f $iidfile