From bfd35fbea64f0bfcd1865267f8ed41aee9e40701 Mon Sep 17 00:00:00 2001 From: Neeran Date: Thu, 16 Jun 2016 17:25:45 +0100 Subject: [PATCH 01/12] Update .travis.yml --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 4855cee..640c00f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,5 +5,6 @@ rvm: before_install: - gem install bundler - sudo apt-get install postgresql + - sudo service postgresql stop script: bundle exec rspec From 559ed7e097d2921c5ec5b838216ad21ac298da0e Mon Sep 17 00:00:00 2001 From: Neeran Date: Thu, 16 Jun 2016 17:28:55 +0100 Subject: [PATCH 02/12] add it before --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 640c00f..16b4523 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,7 @@ rvm: before_install: - gem install bundler - - sudo apt-get install postgresql - sudo service postgresql stop + - sudo apt-get install postgresql script: bundle exec rspec From 2164a64874440e407ebc94fc5cdefdb9a5d6abf8 Mon Sep 17 00:00:00 2001 From: Neeran Date: Wed, 22 Jun 2016 14:02:12 +0100 Subject: [PATCH 03/12] see where the binaries are --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 16b4523..95bd969 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,9 @@ rvm: before_install: - gem install bundler - - sudo service postgresql stop + #- sudo service postgresql stop + - ls /usr/lib/postgresql/9.1/bin - sudo apt-get install postgresql + script: bundle exec rspec From 79a7382b1b183c5a456f3a24899da757d2f248bd Mon Sep 17 00:00:00 2001 From: Neeran Date: Sat, 25 Jun 2016 14:33:21 +0100 Subject: [PATCH 04/12] adding the path --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 95bd969..edf116e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,4 +9,4 @@ before_install: - sudo apt-get install postgresql -script: bundle exec rspec +script: export PATH=/usr/lib/postgresql/9.1/bin:$PATH ; bundle exec rspec From 3b309183f957fbdc8624bc87cc258fecbeffab7c Mon Sep 17 00:00:00 2001 From: Neeran Date: Sat, 25 Jun 2016 15:05:51 +0100 Subject: [PATCH 05/12] Update .travis.yml --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index edf116e..b80e632 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ before_install: - gem install bundler #- sudo service postgresql stop - ls /usr/lib/postgresql/9.1/bin - - sudo apt-get install postgresql + #- sudo apt-get install postgresql script: export PATH=/usr/lib/postgresql/9.1/bin:$PATH ; bundle exec rspec From f2447664f207f4546be87e7dfaa6432b4d413173 Mon Sep 17 00:00:00 2001 From: Neeran Gul Date: Sun, 26 Jun 2016 19:40:07 +0100 Subject: [PATCH 06/12] add initdb setup --- spec/pg_tester_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/pg_tester_spec.rb b/spec/pg_tester_spec.rb index 389dcfb..59477d9 100644 --- a/spec/pg_tester_spec.rb +++ b/spec/pg_tester_spec.rb @@ -143,6 +143,7 @@ context 'run the database via pgctl' do subject { described_class.new } it 'should have the postmaster.pid inside the data directory' do + subject.initdb subject.rundb expect(File.exists?("#{subject.data_dir}/postmaster.pid")).to eq(true) end From 8eb40d7927a8fe04cc4f10dd13764afcc4750a27 Mon Sep 17 00:00:00 2001 From: Neeran Date: Wed, 6 Jul 2016 03:11:47 +0100 Subject: [PATCH 07/12] Update .travis.yml --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b80e632..efe5803 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,4 +9,4 @@ before_install: #- sudo apt-get install postgresql -script: export PATH=/usr/lib/postgresql/9.1/bin:$PATH ; bundle exec rspec +script: export PATH=/usr/lib/postgresql/9.1/bin:$PATH ; /usr/lib/postgresql/9.1/bin/initdb /tmp/pg_tester/ -A trust -E utf-8; ls /tmp/pg_tester From 6b5d13e2d1ac5b07a72708dab14828242dad9b04 Mon Sep 17 00:00:00 2001 From: Neeran Date: Wed, 6 Jul 2016 03:13:29 +0100 Subject: [PATCH 08/12] Update .travis.yml --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index efe5803..1a4a364 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,4 +9,4 @@ before_install: #- sudo apt-get install postgresql -script: export PATH=/usr/lib/postgresql/9.1/bin:$PATH ; /usr/lib/postgresql/9.1/bin/initdb /tmp/pg_tester/ -A trust -E utf-8; ls /tmp/pg_tester +script: export PATH=/usr/lib/postgresql/9.1/bin:$PATH ; /usr/lib/postgresql/9.1/bin/initdb /tmp/pg_tester/ -A trust -E utf-8; /usr/lib/postgresql/9.1/bin/pg_ctl start -o '-p 6433' -D /tmp/pg_tester/; ls /tmp/pg_tester From 87ab4548c4c71b9effa68e64f0e729f75a91807f Mon Sep 17 00:00:00 2001 From: Neeran Date: Wed, 6 Jul 2016 12:07:38 +0100 Subject: [PATCH 09/12] Update .travis.yml --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 1a4a364..b80e632 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,4 +9,4 @@ before_install: #- sudo apt-get install postgresql -script: export PATH=/usr/lib/postgresql/9.1/bin:$PATH ; /usr/lib/postgresql/9.1/bin/initdb /tmp/pg_tester/ -A trust -E utf-8; /usr/lib/postgresql/9.1/bin/pg_ctl start -o '-p 6433' -D /tmp/pg_tester/; ls /tmp/pg_tester +script: export PATH=/usr/lib/postgresql/9.1/bin:$PATH ; bundle exec rspec From 7625577f90b9bd0d44b3e8efb9cc717cf9ac1e59 Mon Sep 17 00:00:00 2001 From: Neeran Date: Wed, 6 Jul 2016 12:08:13 +0100 Subject: [PATCH 10/12] Update pg_tester_spec.rb --- spec/pg_tester_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/pg_tester_spec.rb b/spec/pg_tester_spec.rb index 59477d9..3aeb444 100644 --- a/spec/pg_tester_spec.rb +++ b/spec/pg_tester_spec.rb @@ -135,7 +135,7 @@ context 'initialize the database' do subject { described_class.new } it 'should have the postgresql.conf inside the data directory' do - subject.initdb + subject.setup expect(File.exists?("#{subject.data_dir}/postgresql.conf")).to eq(true) end end @@ -143,8 +143,8 @@ context 'run the database via pgctl' do subject { described_class.new } it 'should have the postmaster.pid inside the data directory' do - subject.initdb - subject.rundb + subject.setup + #subject.rundb expect(File.exists?("#{subject.data_dir}/postmaster.pid")).to eq(true) end From ce3cc42d01331b8da1145b385049a14cc0a3905d Mon Sep 17 00:00:00 2001 From: Neeran Date: Wed, 6 Jul 2016 12:13:21 +0100 Subject: [PATCH 11/12] Update pg_tester_spec.rb --- spec/pg_tester_spec.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/spec/pg_tester_spec.rb b/spec/pg_tester_spec.rb index 3aeb444..7f0f4d9 100644 --- a/spec/pg_tester_spec.rb +++ b/spec/pg_tester_spec.rb @@ -135,7 +135,8 @@ context 'initialize the database' do subject { described_class.new } it 'should have the postgresql.conf inside the data directory' do - subject.setup + subject.create_data_dir + subject.initdb expect(File.exists?("#{subject.data_dir}/postgresql.conf")).to eq(true) end end @@ -143,8 +144,9 @@ context 'run the database via pgctl' do subject { described_class.new } it 'should have the postmaster.pid inside the data directory' do - subject.setup - #subject.rundb + subject.create_data_dir + subject.initdb + subject.rundb expect(File.exists?("#{subject.data_dir}/postmaster.pid")).to eq(true) end From 49d30c4346f9b980c68f113f1a6fef0db4e0d83f Mon Sep 17 00:00:00 2001 From: Neeran Date: Wed, 6 Jul 2016 13:42:47 +0100 Subject: [PATCH 12/12] Update pg_tester_spec.rb --- spec/pg_tester_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/pg_tester_spec.rb b/spec/pg_tester_spec.rb index 7f0f4d9..8f313b7 100644 --- a/spec/pg_tester_spec.rb +++ b/spec/pg_tester_spec.rb @@ -146,7 +146,7 @@ it 'should have the postmaster.pid inside the data directory' do subject.create_data_dir subject.initdb - subject.rundb + puts "IM RUNNING #{subject.rundb}" expect(File.exists?("#{subject.data_dir}/postmaster.pid")).to eq(true) end