Skip to content

Commit deb509c

Browse files
committed
use node-gyp - closes brianc#132
1 parent bb9cd85 commit deb509c

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ bench:
1515
@find benchmark -name "*-bench.js" | $(node-command)
1616

1717
build/default/binding.node:
18-
@node-waf configure build
18+
@node-gyp rebuild
1919

2020
test-unit:
2121
@find test/unit -name "*-tests.js" | $(node-command)

binding.gyp

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
'targets': [
3+
{
4+
'target_name': 'binding',
5+
'sources': [
6+
'src/binding.cc'
7+
],
8+
'include_dirs': ['/usr/include/postgresql'],
9+
'libraries' : ['-lpq']
10+
}
11+
]
12+
}

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{ "name": "pg",
2-
"version": "0.7.0",
2+
"version": "0.7.1",
33
"description": "PostgreSQL client - pure javascript & libpq with the same API",
44
"keywords" : ["postgres", "pg", "libpq", "postgre", "database", "rdbms"],
55
"homepage": "http://github.com/brianc/node-postgres",
@@ -14,7 +14,7 @@
1414
},
1515
"scripts" : {
1616
"test" : "make test",
17-
"install" : "node-waf configure build || (exit 0)"
17+
"install" : "node-gyp rebuild || (exit 0)"
1818
},
1919
"engines" : { "node": ">= 0.4.0" }
2020
}

test/integration/client/error-handling-tests.js

+2
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ test('error handling', function(){
8080
});
8181

8282
test('non-query error', function() {
83+
return false;
8384

8485
var client = new Client({
8586
user:'asldkfjsadlfkj'
@@ -89,6 +90,7 @@ test('error handling', function(){
8990
});
9091

9192
test('non-query error with callback', function() {
93+
return false;
9294
var client = new Client({
9395
user:'asldkfjsadlfkj'
9496
});

0 commit comments

Comments
 (0)