Make sure we clean any old MongoDB 3.4 files laying around otherwise the
service won't start.
@@ -101,6 +101,8 @@ install:
before_script:
# Use a custom mongod.conf which uses various speed optimizations
- sudo cp scripts/travis/mongod.conf /etc/mongod.conf
+ # Clean up any old MongoDB 3.4 data files laying around
+ - sudo rm -rf /var/lib/mongodb ; sudo mkdir /var/lib/mongodb
- sudo service mongod restart ; sleep 5
- sudo service mongod status
- tail -30 /var/log/mongodb/mongod.log
