diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2018-09-20 18:12:45 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-20 18:12:45 +1000 |
commit | 741571cf22b342f2cfaf5c47f324397af7072bb3 (patch) | |
tree | 533b49f29941694a0849cd3382dceb4429171907 /test_postgresql.sh | |
parent | Add a regression test for logging on failed connections (#3912) (diff) | |
download | synapse-741571cf22b342f2cfaf5c47f324397af7072bb3.tar.xz |
Add a way to run tests in PostgreSQL in Docker (#3699)
Diffstat (limited to 'test_postgresql.sh')
-rwxr-xr-x | test_postgresql.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test_postgresql.sh b/test_postgresql.sh new file mode 100755 index 0000000000..1ffcaabd31 --- /dev/null +++ b/test_postgresql.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# This script builds the Docker image to run the PostgreSQL tests, and then runs +# the tests. + +set -e + +# Build, and tag +docker build docker/ -f docker/Dockerfile-pgtests -t synapsepgtests + +# Run, mounting the current directory into /src +docker run --rm -it -v $(pwd)\:/src synapsepgtests |