talos/hack/test/integration.sh
Spencer Smith 95b107d884
chore(ci): modularize integration test (#722)
Signed-off-by: Spencer Smith <robertspencersmith@gmail.com>
2019-06-06 09:28:53 -04:00

20 lines
320 B
Bash
Executable File

#!/bin/bash
set -eou pipefail
export TMP="$(mktemp -d)"
export OSCTL="${PWD}/build/osctl-linux-amd64"
export TALOSCONFIG="${TMP}/talosconfig"
export KUBECONFIG="${TMP}/kubeconfig"
cleanup() {
${OSCTL} cluster destroy --name integration
rm -rf ${TMP}
}
trap cleanup EXIT
./hack/test/osctl-docker-create.sh
exit 0