2017-04-21 09:23:45 +00:00
|
|
|
#!/usr/bin/env bash
|
2016-02-19 11:58:06 +00:00
|
|
|
set -e
|
2015-09-15 19:38:54 +00:00
|
|
|
|
|
|
|
export DEST=.
|
|
|
|
|
2019-05-10 15:24:06 +00:00
|
|
|
TESTFLAGS+=("-test.timeout=20m" -check.v)
|
2016-03-23 22:06:22 +00:00
|
|
|
|
|
|
|
if [ -n "$VERBOSE" ]; then
|
2019-05-10 15:24:06 +00:00
|
|
|
TESTFLAGS+=(-v)
|
2019-03-15 08:42:03 +00:00
|
|
|
elif [ -n "$VERBOSE_INTEGRATION" ]; then
|
2019-05-10 15:24:06 +00:00
|
|
|
TESTFLAGS+=(-v)
|
2016-03-23 22:06:22 +00:00
|
|
|
fi
|
2015-09-27 13:56:53 +00:00
|
|
|
|
|
|
|
cd integration
|
2019-05-10 15:24:06 +00:00
|
|
|
echo "Testing against..."
|
2016-05-12 15:18:58 +00:00
|
|
|
docker version
|
2017-10-30 09:02:03 +00:00
|
|
|
|
2021-11-25 10:10:06 +00:00
|
|
|
# shellcheck disable=SC2086
|
|
|
|
CGO_ENABLED=0 go test -integration ${TESTFLAGS[*]}
|