Commit 43b0f7a1 authored by bobbyrullo's avatar bobbyrullo

Merge pull request #75 from bobbyrullo/docker_is_fun

go-docker: support functional tests
parents 5f4fa642 91b900db
......@@ -17,5 +17,10 @@ for VAR in ${DOCKER_ENV//,/ }; do
ENV_STR="$ENV_STR -e $VAR=${!VAR}"
done
LINKS_STR=""
for VAR in ${DOCKER_LINKS//,/ }; do
LINKS_STR="$LINKS_STR --link $VAR"
done
echo "running with docker, might take a while to pull the image..."
docker run $ENV_STR --rm --net=host -v `pwd`:/go/src/$REPO -w /go/src/$REPO quay.io/coreos/go-builder:1.3.3 $@
docker run $LINKS_STR $ENV_STR --rm -v `pwd`:/go/src/$REPO -w /go/src/$REPO quay.io/coreos/go-builder:1.3.3 $@
#!/bin/bash -e
source ./build
go test $@ github.com/coreos/dex/functional
go test $@ github.com/coreos/dex/functional/repo
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment