Skip to content

Commit

Permalink
Merge branch 'leo/mongo'
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoCavaille committed Jan 9, 2015
2 parents 570b0f5 + 50f1f19 commit 2bd69dc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ci/mongo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@

# Set up the replica set + print some debug info
sleep_for(15)
sh %Q{sudo mongo --eval "printjson(db.serverStatus())" 'localhost:37017' >> /tmp/mongo.log}
sh %Q{sudo mongo --eval "printjson(db.serverStatus())" 'localhost:37018' >> /tmp/mongo.log}
# FIXME: cannot use this commands on travis because they seem to
# make mongo enter in a sort of lock forever stalling the build
# sh %Q{sudo mongo --eval "printjson(db.serverStatus())" 'localhost:37017' >> /tmp/mongo.log}
# sh %Q{sudo mongo --eval "printjson(db.serverStatus())" 'localhost:37018' >> /tmp/mongo.log}
sh %Q{sudo mongo --eval "printjson(rs.initiate()); printjson(rs.conf());" 'localhost:37017' >> /tmp/mongo.log}
sleep_for(30)
sh %Q{sudo mongo --eval "printjson(rs.config()); printjson(rs.status());" 'localhost:37017' >> /tmp/mongo.log}
sh %Q{sudo mongo --eval "printjson(rs.config()); printjson(rs.status());" 'localhost:37018' >> /tmp/mongo.log}
sh %Q{sudo mongo --verbose --eval "printjson(rs.config()); printjson(rs.status());" 'localhost:37017' >> /tmp/mongo.log}
sh %Q{sudo mongo --verbose --eval "printjson(rs.config()); printjson(rs.status());" 'localhost:37018' >> /tmp/mongo.log}
end

task :script => ['ci:common:script'] do
Expand Down

0 comments on commit 2bd69dc

Please sign in to comment.