2017-05-27 05:10:26 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -eu -o pipefail -x
|
|
|
|
|
2017-12-28 08:17:42 +00:00
|
|
|
iidfile=$(mktemp -t docker-iidfile.XXXXXXXXXX)
|
2017-11-30 01:41:44 +00:00
|
|
|
|
2017-12-20 07:22:19 +00:00
|
|
|
docker build --iidfile $iidfile --target integration-tests -f ./hack/dockerfiles/test.Dockerfile --force-rm .
|
2017-11-30 01:41:44 +00:00
|
|
|
|
2017-12-20 07:22:19 +00:00
|
|
|
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
|