Only install on Travis

This commit is contained in:
Seth Vargo 2017-03-23 19:14:38 -04:00
parent ba5eb9fa33
commit 8766e68f3f
No known key found for this signature in database
GPG Key ID: C921994F9C27E0FF
1 changed files with 5 additions and 3 deletions

View File

@ -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