mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-04 16:24:10 -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
docker/Dockerfile-pgtests
Normal file
12
docker/Dockerfile-pgtests
Normal file
|
@ -0,0 +1,12 @@
|
|||
# Use the Sytest image that comes with a lot of the build dependencies
|
||||
# pre-installed
|
||||
FROM matrixdotorg/sytest:latest
|
||||
|
||||
# The Sytest image doesn't come with python, so install that
|
||||
RUN apt-get -qq install -y python python-dev python-pip
|
||||
|
||||
# We need tox to run the tests in run_pg_tests.sh
|
||||
RUN pip install tox
|
||||
|
||||
ADD run_pg_tests.sh /pg_tests.sh
|
||||
ENTRYPOINT /pg_tests.sh
|
Loading…
Add table
Add a link
Reference in a new issue