Commit graph

8 commits

Author SHA1 Message Date
quelist
705f4d6f47 Add MongoDB shell version detection to before scripts
Update before_script.sh and before_script_docker.sh to automatically detect and use the appropriate MongoDB shell command (mongo or mongosh) based on availability. This ensures compatibility with both:
- Legacy MongoDB versions using 'mongo' shell
- Modern MongoDB versions (5.0+) using 'mongosh'

The scripts now:
- Check for command availability
- Use the appropriate shell
- Exit with helpful error if no shell is found
2024-11-28 12:54:54 +05:30
Michael Klishin
3a94b2a805
Move the sleep to .travis.yml
Since it's only really necessary in CI scenarios.
2018-12-10 15:21:42 +03:00
Chris Broome
8102c42888
TravisCI: change dist to xenial
- Change distribution to `xenial`
- Remove custom mongodb 4.0 installation since xenial ships with 4.0
- Increase wait time from 5 to 15 seconds
2018-12-04 23:03:14 -05:00
Michael Klishin
8879e552ef
Make before_script.sh compatible with MongoDB 4.0
Note that MongoDB 3.6 doesn't recognize the mechanisms field.
2018-12-02 21:38:17 +03:00
Michael Klishin
49cb195e5a Adapt before_script.sh to createUser in 3.0 GA 2015-05-11 00:04:31 +03:00
Michael Klishin
7c31e98cf3 addUser is superceded by createUser 2015-02-22 19:28:11 +03:00
Michael Klishin
5c39babf69 Attempt to fix the build 2014-11-15 20:11:08 +03:00
Michael S. Klishin
d2408faea6 Introduce monger.core/authenticate 2012-02-02 09:53:26 +04:00