From 8766e68f3f0c66096201f13e648c85bb3a3b3d6c Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Thu, 23 Mar 2017 19:14:38 -0400 Subject: [PATCH] Only install on Travis --- scripts/test.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/test.sh b/scripts/test.sh index 816e38300..fe1fac560 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -1,9 +1,11 @@ #!/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 [ -n "$TRAVIS" ]; then + # Install all packages - this will make running the suite faster + echo "--> Installing packages for faster tests" + go install -tags="${GOTAGS}" -a ./... +fi # If we are testing the API, build and install consul if grep -q "/consul/api" <<< "${GOFILES}"; then