diff --git a/Makefile b/Makefile index ba19336..b7c9851 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ bench: @find benchmark -name "*-bench.js" | $(node-command) build/default/binding.node: - @node-waf configure build + @node-gyp rebuild test-unit: @find test/unit -name "*-tests.js" | $(node-command) diff --git a/binding.gyp b/binding.gyp new file mode 100644 index 0000000..135bf38 --- /dev/null +++ b/binding.gyp @@ -0,0 +1,12 @@ +{ + 'targets': [ + { + 'target_name': 'binding', + 'sources': [ + 'src/binding.cc' + ], + 'include_dirs': ['/usr/include/postgresql'], + 'libraries' : ['-lpq'] + } + ] +} diff --git a/package.json b/package.json index a47cd3b..2e0a596 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { "name": "pg", - "version": "0.7.0", + "version": "0.7.1", "description": "PostgreSQL client - pure javascript & libpq with the same API", "keywords" : ["postgres", "pg", "libpq", "postgre", "database", "rdbms"], "homepage": "http://github.com/brianc/node-postgres", @@ -14,7 +14,7 @@ }, "scripts" : { "test" : "make test", - "install" : "node-waf configure build || (exit 0)" + "install" : "node-gyp rebuild || (exit 0)" }, "engines" : { "node": ">= 0.4.0" } } diff --git a/test/integration/client/error-handling-tests.js b/test/integration/client/error-handling-tests.js index 0a85523..ab6ed99 100644 --- a/test/integration/client/error-handling-tests.js +++ b/test/integration/client/error-handling-tests.js @@ -80,6 +80,7 @@ test('error handling', function(){ }); test('non-query error', function() { + return false; var client = new Client({ user:'asldkfjsadlfkj' @@ -89,6 +90,7 @@ test('error handling', function(){ }); test('non-query error with callback', function() { + return false; var client = new Client({ user:'asldkfjsadlfkj' });