Fix regression on plumbing scripts for developer usages

This commit is contained in:
Damien Duportal 2019-05-14 19:58:04 +02:00 committed by Traefiker Bot
parent 886a6bdbe0
commit 5cd9396dae
3 changed files with 8 additions and 4 deletions

View file

@ -26,7 +26,8 @@ if [ -z "$DATE" ]; then
fi
# Build binaries
CGO_ENABLED=0 GOGC=off go build "${FLAGS[@]}" -ldflags "-s -w \
# shellcheck disable=SC2086
CGO_ENABLED=0 GOGC=off go build ${FLAGS[*]} -ldflags "-s -w \
-X github.com/containous/traefik/pkg/version.Version=$VERSION \
-X github.com/containous/traefik/pkg/version.Codename=$CODENAME \
-X github.com/containous/traefik/pkg/version.BuildDate=$DATE" \

View file

@ -17,10 +17,12 @@ docker version
if [ -n "$TEST_CONTAINER" ]; then
echo "Testing from container…"
CGO_ENABLED=0 go test -integration -container "${TESTFLAGS[@]}"
# shellcheck disable=SC2086
CGO_ENABLED=0 go test -integration -container ${TESTFLAGS[*]}
fi
if [ -n "$TEST_HOST" ]; then
echo "Testing from host…"
CGO_ENABLED=0 go test -integration -host "${TESTFLAGS[@]}"
# shellcheck disable=SC2086
CGO_ENABLED=0 go test -integration -host ${TESTFLAGS[*]}
fi

View file

@ -21,7 +21,8 @@ fi
set +e
go test "${TESTFLAGS[@]}" ./pkg/...
# shellcheck disable=SC2086
go test ${TESTFLAGS[*]} ./pkg/...
CODE=$?
if [ ${CODE} != 0 ]; then