From b38d60dc265c3d38488fe7816a16d301b23da9dc Mon Sep 17 00:00:00 2001 From: Brian Carlson Date: Sun, 1 Sep 2013 21:44:02 -0500 Subject: [PATCH] Compile bindings before any integration tests --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8407f971..c293f4dc 100644 --- a/Makefile +++ b/Makefile @@ -12,11 +12,14 @@ node-command := xargs -n 1 -I file node file $(params) all: npm install +build: + node-gyp rebuild + help: @echo "make prepare-test-db [connectionString=postgres://]" @echo "make test-all [connectionString=postgres://]" -test: test-unit +test: test-unit test-all: jshint test-unit test-integration test-native test-binary @@ -49,7 +52,7 @@ test-native: build/default/binding.node @find test/native -name "*-tests.js" | $(node-command) @find test/integration -name "*-tests.js" | $(node-command) native -test-integration: test-connection +test-integration: test-connection build/default/binding.node @echo "***Testing Pure Javascript***" @find test/integration -name "*-tests.js" | $(node-command)