Skip to content
Snippets Groups Projects
Commit 2b98e147 authored by Justin Ehlert's avatar Justin Ehlert
Browse files

Pin the mongodb version to 3.2 (current supported version) in run-tests-docker.sh

parent 8eb45540
No related branches found
No related tags found
No related merge requests found
......@@ -26,12 +26,15 @@ Build scitran-core image and run automated tests in a docker container:
* To skip building the image, use `--no-build` (`-B`)
* To pass any arguments to `run-tests-ubuntu.sh`, use `-- TEST_ARGS`
#### Example
Without rebuilding the image, run only integration tests matching `foo`, use the highest verbosity level for test output and jump into a python debugger session in case an assertion fails:
```
./tests/bin/run-tests-docker.sh -B -- -i -- -k foo -vvv --pdb
```
**NOTE:** The mongodb version is pinned via the `MONGO_VERSION` variable in `tests/bin/run-tests-docker.sh`.
### Tools
- [abao](https://github.com/cybertk/abao/)
......
......@@ -23,6 +23,7 @@ EOF
function main() {
local DOCKER_BUILD=true
local TEST_ARGS=
local MONGO_VERSION=3.2
while [[ "$#" > 0 ]]; do
case "$1" in
......@@ -47,7 +48,7 @@ function main() {
docker run -d \
--name scitran-core-test-mongo \
--network scitran-core-test-network \
mongo
mongo:${MONGO_VERSION}
# Execute tests
docker run -it \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment