File tree 3 files changed +26
-2
lines changed
3 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ params := $(connectionString)
7
7
node-command := xargs -n 1 -I file node file $(params )
8
8
9
9
.PHONY : test test-connection test-integration bench test-native \
10
- build/default/binding.node jshint
10
+ build/default/binding.node jshint upgrade-pg
11
11
12
12
all :
13
13
npm install
@@ -20,6 +20,12 @@ test: test-unit
20
20
21
21
test-all : jshint test-unit test-integration test-native test-binary
22
22
23
+ test-travis : test-all upgrade-pg test-integration test-native test-binary
24
+
25
+ upgrade-pg :
26
+ @chmod 755 script/travis-pg-9.2-install.sh
27
+ @./script/travis-pg-9.2-install.sh
28
+
23
29
bench :
24
30
@find benchmark -name " *-bench.js" | $(node-command )
25
31
Original file line number Diff line number Diff line change 26
26
"semver" : " ~1.1.4"
27
27
},
28
28
"scripts" : {
29
- "test" : " make test-all connectionString=pg://postgres@localhost:5432/postgres" ,
29
+ "test" : " make test-travis connectionString=pg://postgres@localhost:5432/postgres" ,
30
30
"prepublish" : " rm -r build || (exit 0)" ,
31
31
"install" : " node-gyp rebuild || (exit 0)"
32
32
},
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ # sudo cat /etc/postgresql/9.1/main/pg_hba.conf
3
+ # sudo cat /etc/postgresql/9.1/main/pg_ident.conf
4
+ # sudo cat /etc/postgresql/9.1/main/postgresql.conf
5
+ sudo /etc/init.d/postgresql stop
6
+ sudo apt-get -y --purge remove postgresql
7
+ echo " yes" | sudo add-apt-repository ppa:pitti/postgresql
8
+ sudo apt-get update -qq
9
+ sudo apt-get -q -y -o Dpkg::Options::=--force-confdef install postgresql-9.2 postgresql-contrib-9.2
10
+ sudo chmod 777 /etc/postgresql/9.2/main/pg_hba.conf
11
+ sudo echo " local all postgres trust" > /etc/postgresql/9.2/main/pg_hba.conf
12
+ sudo echo " local all all trust" >> /etc/postgresql/9.2/main/pg_hba.conf
13
+ sudo echo " host all all 127.0.0.1/32 trust" >> /etc/postgresql/9.2/main/pg_hba.conf
14
+ sudo echo " host all all ::1/128 trust" >> /etc/postgresql/9.2/main/pg_hba.conf
15
+ sudo echo " host all all 0.0.0.0/0 trust" >> /etc/postgresql/9.2/main/pg_hba.conf
16
+ sudo echo " host all all 0.0.0.0 255.255.255.255 trust" >> /etc/postgresql/9.2/main/pg_hba.conf
17
+ sudo /etc/init.d/postgresql restart
18
+ node script/create-test-tables.js pg://
[email protected] :5432/postgres
You can’t perform that action at this time.
0 commit comments