From 73fc8d2a5279460ba8142bb2ca98cf8790bd9618 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 816e383008..fe1fac5600 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