From 38b1c61accbe8bf41aaee446e04435f8d7d9473d Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Thu, 23 Mar 2017 19:12:30 -0400 Subject: [PATCH] Install packages, then build --- scripts/test.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/test.sh b/scripts/test.sh index 47bcc79e23..816e383008 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -1,6 +1,10 @@ #!/usr/bin/env bash set -e +# Install all packages - this will make running the suite faster +echo "--> Installing packages for faster tests" +go install -tags="${GOTAGS}" -a ./... + # If we are testing the API, build and install consul if grep -q "/consul/api" <<< "${GOFILES}"; then # Create a temp dir and clean it up on exit @@ -13,10 +17,6 @@ if grep -q "/consul/api" <<< "${GOFILES}"; then PATH="${TEMPDIR}:${PATH}" fi -# Install all packages - this will make running the suite faster -echo "--> Installing packages for faster tests" -go install -tags="${GOTAGS}" -a ./... - # Run the tests echo "--> Running tests" go test -timeout=360s -parallel=20 -tags="${GOTAGS}" ${GOFILES} ${TESTARGS}