Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Update .travis.yml #3

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ rvm:

before_install:
- gem install bundler
- sudo apt-get install postgresql
#- sudo service postgresql stop
- ls /usr/lib/postgresql/9.1/bin
#- sudo apt-get install postgresql


script: bundle exec rspec
script: export PATH=/usr/lib/postgresql/9.1/bin:$PATH ; bundle exec rspec
5 changes: 4 additions & 1 deletion spec/pg_tester_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@
context 'initialize the database' do
subject { described_class.new }
it 'should have the postgresql.conf inside the data directory' do
subject.create_data_dir
subject.initdb
expect(File.exists?("#{subject.data_dir}/postgresql.conf")).to eq(true)
end
Expand All @@ -143,7 +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.rundb
subject.create_data_dir
subject.initdb
puts "IM RUNNING #{subject.rundb}"
expect(File.exists?("#{subject.data_dir}/postmaster.pid")).to eq(true)
end

Expand Down