Skip to content
Snippets Groups Projects
Unverified Commit d2f34fd2 authored by Justin Ehlert's avatar Justin Ehlert Committed by GitHub
Browse files

Merge pull request #1036 from scitran/pin-mongo-version

Pin the mongodb version to 3.2 in run-tests-docker.sh
parents 8eb45540 2b98e147
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: ...@@ -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 skip building the image, use `--no-build` (`-B`)
* To pass any arguments to `run-tests-ubuntu.sh`, use `-- TEST_ARGS` * To pass any arguments to `run-tests-ubuntu.sh`, use `-- TEST_ARGS`
#### Example #### 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: 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 ./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 ### Tools
- [abao](https://github.com/cybertk/abao/) - [abao](https://github.com/cybertk/abao/)
......
...@@ -23,6 +23,7 @@ EOF ...@@ -23,6 +23,7 @@ EOF
function main() { function main() {
local DOCKER_BUILD=true local DOCKER_BUILD=true
local TEST_ARGS= local TEST_ARGS=
local MONGO_VERSION=3.2
while [[ "$#" > 0 ]]; do while [[ "$#" > 0 ]]; do
case "$1" in case "$1" in
...@@ -47,7 +48,7 @@ function main() { ...@@ -47,7 +48,7 @@ function main() {
docker run -d \ docker run -d \
--name scitran-core-test-mongo \ --name scitran-core-test-mongo \
--network scitran-core-test-network \ --network scitran-core-test-network \
mongo mongo:${MONGO_VERSION}
# Execute tests # Execute tests
docker run -it \ 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