DATAMONGO-1866 - Update travis build to use single node replica set.

This commit is contained in:
Christoph Strobl
2018-02-07 08:55:08 +01:00
parent c2e43bd938
commit bb889c7672

View File

@@ -5,6 +5,14 @@ jdk:
before_script:
- mongod --version
- |-
echo "replication:
replSetName: rs0" | sudo tee -a /etc/mongod.conf
- sudo service mongod restart
- sleep 20
- |-
mongo --eval "rs.initiate({_id: 'rs0', members:[{_id: 0, host: '127.0.0.1:27017'}]});"
- sleep 15
services:
- mongodb