1
0
mirror of https://github.com/containous/traefik.git synced 2025-01-11 05:17:52 +03:00
traefik/script/test-integration
2022-09-14 15:10:08 +02:00

21 lines
366 B
Bash
Executable File

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