Add some sleep to give time to MongoDB to start up.
@@ -20,6 +20,9 @@ dependencies:
# We install and test with all the supported MongoDB versions
- case $CIRCLE_NODE_INDEX in [1,2]) sudo service mongodb stop ; MONGODB_VERSION=3.2.12 sudo -E .circle/install-and-run-mongodb.sh > /tmp/mongodb-install.log 2>&1 ;; [3,4]) sudo service mongodb stop ; MONGODB_VERSION=3.4.2 sudo -E .circle/install-and-run-mongodb.sh > /tmp/mongodb-install.log 2>&1 ;; esac:
background: true
+ # We sleep a bit to wait for the background process to start and script to
+ # finish
+ - case $CIRCLE_NODE_INDEX in [1,2]) sleep 10 ;; esac:
# Tail the logs so it's easier to see what is going on. Sadly when using "background: true"
# whole output is ignored.
- case $CIRCLE_NODE_INDEX in [1,2]) tail -50 /tmp/mongodb-install.log ;; [3,4]) tail -50 /tmp/mongodb-install.log ;; esac
