install packages for tests

Running `go test -i` installs the requirements for a package's tests.
This way when running the tests in batches of 4, we can cut the runtime
in half be only compiling the dependencies once.
This commit is contained in:
James Bardin 2017-01-23 16:29:16 -05:00 committed by Mitchell Hashimoto
parent f4ca79d7b7
commit 87253e448c
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
1 changed files with 1 additions and 0 deletions

View File

@ -39,6 +39,7 @@ plugin-dev: generate
# test runs the unit tests
test:# fmtcheck errcheck generate
go test -i $(TEST) || exit 1
echo $(TEST) | \
xargs -t -n4 go test $(TESTARGS) -timeout=30s -parallel=4