mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-26 20:19:23 -05:00
9006ee36d1
* remove reference in comments to python3.6 * upgrade tox python env in script * bump python version in example for completeness * upgrade python version requirement in setup doc * upgrade necessary python version in __init__.py * upgrade python version in setup.py * newsfragment * drops refs to bionic and replace with focal * bump refs to postgres 9.6 to 10 * fix hanging ci * try installing tzdata first * revert change made in b979f336 * ignore new random mypy error while debugging other error * fix lint error for temporary workaround * revert change to install list * try passing env var * export debian frontend var? * move line and add comment * bump pillow dependency * bump lxml depenency * install libjpeg-dev for pillow * bump automat version to one compatible with py3.8 * add libwebp for pillow * bump twisted trunk python version * change suffix of newsfragment * remove redundant python 3.7 checks * lint
20 lines
616 B
Bash
Executable File
20 lines
616 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# This script runs the PostgreSQL tests inside a Docker container. It expects
|
|
# the relevant source files to be mounted into /src (done automatically by the
|
|
# caller script). It will set up the database, run it, and then use the tox
|
|
# configuration to run the tests.
|
|
|
|
set -e
|
|
|
|
# Set PGUSER so Synapse's tests know what user to connect to the database with
|
|
export PGUSER=postgres
|
|
|
|
# Start the database
|
|
sudo -u postgres /usr/lib/postgresql/10/bin/pg_ctl -w -D /var/lib/postgresql/data start
|
|
|
|
# Run the tests
|
|
cd /src
|
|
export TRIAL_FLAGS="-j 4"
|
|
tox --workdir=./.tox-pg-container -e py37-postgres "$@"
|