Add a way to run tests in PostgreSQL in Docker (#3699)

This commit is contained in:
Amber Brown 2018-09-20 18:12:45 +10:00 committed by GitHub
parent aeca5a5ed5
commit 741571cf22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 79 additions and 9 deletions

12
test_postgresql.sh Executable file
View 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