mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 12:04:53 -04:00
Add a way to run tests in PostgreSQL in Docker (#3699)
This commit is contained in:
parent
aeca5a5ed5
commit
741571cf22
8 changed files with 79 additions and 9 deletions
12
test_postgresql.sh
Executable file
12
test_postgresql.sh
Executable file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue