k3s/scripts/test
2020-01-20 19:34:01 -07:00

34 lines
553 B
Bash
Executable File

#!/bin/bash
set -e -x
cd $(dirname $0)/..
. ./scripts/test-helpers
artifacts=$(pwd)/dist/artifacts
mkdir -p $artifacts
# ---
. ./scripts/test-run-basics
# ---
E2E_OUTPUT=$artifacts test-run-sonobuoy
# ---
if [[ "$DRONE_SYSTEM_HOST" =~ 'publish' ]]; then
printf "\033[33mSkipping remaining tests on publish.\033[m\n"
exit 0
fi
if [ "$ARCH" != 'amd64' ]; then
printf "\033[33mSkipping remaining tests, images not available for $ARCH.\033[m\n"
exit 0
fi
# ---
test-run-sonobuoy mysql
test-run-sonobuoy postgres
# test-run-sonobuoy dqlite