traefik/script/test-integration

21 lines
366 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
set -e
export DEST=.
TESTFLAGS+=("-test.timeout=20m" -check.v)
2022-09-14 13:10:08 +00:00
if [ -n "${VERBOSE}" ]; then
TESTFLAGS+=(-v)
2022-09-14 13:10:08 +00:00
elif [ -n "${VERBOSE_INTEGRATION}" ]; then
TESTFLAGS+=(-v)
fi
cd integration
echo "Testing against..."
docker version
2017-10-30 09:02:03 +00:00
# shellcheck disable=SC2086
2022-09-14 13:10:08 +00:00
# shellcheck disable=SC2048
CGO_ENABLED=0 go test -integration ${TESTFLAGS[*]}