From f4ca79d7b76c0ef9b64960328d43b87b6f79b4ee Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 21 Jan 2017 09:42:54 -0800 Subject: [PATCH] Update Makefile to run tests 4 packages at a time We were running out of RAM on Travis --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 76aca228c..c5e366b08 100644 --- a/Makefile +++ b/Makefile @@ -38,8 +38,9 @@ plugin-dev: generate mv $(GOPATH)/bin/$(PLUGIN) $(GOPATH)/bin/terraform-$(PLUGIN) # test runs the unit tests -test: fmtcheck errcheck generate - TF_ACC= go test $(TEST) $(TESTARGS) -timeout=30s -parallel=4 +test:# fmtcheck errcheck generate + echo $(TEST) | \ + xargs -t -n4 go test $(TESTARGS) -timeout=30s -parallel=4 # testacc runs acceptance tests testacc: fmtcheck generate