Skip to content

Commit b38d60d

Browse files
committed
Compile bindings before any integration tests
1 parent a4caea5 commit b38d60d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Makefile

+5-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,14 @@ node-command := xargs -n 1 -I file node file $(params)
1212
all:
1313
npm install
1414

15+
build:
16+
node-gyp rebuild
17+
1518
help:
1619
@echo "make prepare-test-db [connectionString=postgres://<your connection string>]"
1720
@echo "make test-all [connectionString=postgres://<your connection string>]"
1821

19-
test: test-unit
22+
test: test-unit
2023

2124
test-all: jshint test-unit test-integration test-native test-binary
2225

@@ -49,7 +52,7 @@ test-native: build/default/binding.node
4952
@find test/native -name "*-tests.js" | $(node-command)
5053
@find test/integration -name "*-tests.js" | $(node-command) native
5154

52-
test-integration: test-connection
55+
test-integration: test-connection build/default/binding.node
5356
@echo "***Testing Pure Javascript***"
5457
@find test/integration -name "*-tests.js" | $(node-command)
5558

0 commit comments

Comments
 (0)