From 5401fe2790923dec4daa61f79c5924026ee06f36 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jos=C3=A9=20Carlos=20Nieto?= <jose.carlos@menteslibres.net>
Date: Sun, 27 Nov 2016 07:28:45 -0600
Subject: [PATCH] Modify Makefile to run tests concurrently

---
 Makefile | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index b72e1662..7181dd72 100644
--- a/Makefile
+++ b/Makefile
@@ -5,9 +5,11 @@ DB_HOST ?= 127.0.0.1
 export DB_HOST
 
 test:
-	go test -v -benchtime=500ms -bench=. ./lib/... && \
-	go test -v -benchtime=500ms -bench=. ./internal/... && \
+	go test -v -benchtime=500ms -bench=. ./lib/... & \
+	go test -v -benchtime=500ms -bench=. ./internal/... & \
+	wait && \
 	for ADAPTER in postgresql mysql sqlite ql mongo; do \
-		$(MAKE) -C $$ADAPTER test; \
+		$(MAKE) -C $$ADAPTER test & \
 	done && \
+	wait && \
 	go test -v
-- 
GitLab