Replace minikube for e2e tests

This commit is contained in:
Manuel de Brito Fontes 2018-07-27 20:39:01 -04:00 committed by Manuel Alejandro de Brito Fontes
parent c0a30eac7f
commit 7032fb7d68
No known key found for this signature in database
GPG key ID: 786136016A8BA02A
9 changed files with 1837 additions and 118 deletions

View file

@ -18,29 +18,25 @@ set -o errexit
set -o nounset
set -o pipefail
if [ -z "${PKG}" ]; then
echo "PKG must be set"
exit 1
fi
if [ -z "${ARCH}" ]; then
echo "ARCH must be set"
exit 1
fi
if [ -z "${GIT_COMMIT}" ]; then
echo "GIT_COMMIT must be set"
exit 1
fi
if [ -z "${REPO_INFO}" ]; then
echo "REPO_INFO must be set"
exit 1
fi
if [ -z "${TAG}" ]; then
echo "TAG must be set"
exit 1
fi
if [ -z "${TAG}" ]; then
echo "TAG must be set"
exit 1
declare -a mandatory
mandatory=(
PKG
ARCH
GIT_COMMIT
REPO_INFO
TAG
)
missing=false
for var in ${mandatory[@]}; do
if [[ -z "${!var+x}" ]]; then
echo "Environment variable $var must be set"
missing=true
fi
done
if [ "$missing" = true ];then
exit 1
fi
export CGO_ENABLED=0