diff --git a/.travis.yml b/.travis.yml index b52607d19e..ee2adce7cc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ go_import_path: github.com/tidepool-org/platform env: global: - - MONGODB=5.3.2 + - MONGODB=6.0.9 before_install: - sudo apt-get remove -y mongodb-org mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools @@ -19,10 +19,8 @@ before_install: - tar -xf /tmp/mongodb.tgz - mkdir /tmp/data - ${PWD}/mongodb-linux-x86_64-ubuntu2004-${MONGODB}/bin/mongod --replSet rs0 --dbpath /tmp/data --bind_ip 127.0.0.1 --logpath ${PWD}/mongod.log &> /dev/null & - # sleep for a few seconds so that mongod actually starts otherwise the mongo shell command we run below won't be able to connect to mongod. - - sleep 2 - - ${PWD}/mongodb-linux-x86_64-ubuntu2004-${MONGODB}/bin/mongo --host 127.0.0.1 --port 27017 --eval 'rs.initiate()' - until nc -z localhost 27017; do echo Waiting for MongoDB; sleep 1; done + - ${PWD}/mongodb-linux-x86_64-ubuntu2004-${MONGODB}/bin/mongo --host 127.0.0.1 --port 27017 --eval 'rs.initiate()' addons: artifacts: