mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
ci: Test upgrade-postgresql on Ubuntu 20.04.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
3bbe5c1110
commit
d035efd467
@@ -61,8 +61,8 @@ os_info="$(
|
||||
read -r os_version_id
|
||||
} <<<"$os_info"
|
||||
|
||||
# Pin to PostgreSQL 10 on Bionic, so we can test upgrading it
|
||||
if [ "$os_id $os_version_id" = 'ubuntu 18.04' ]; then
|
||||
# Pin to PostgreSQL 10 on Ubuntu 20.04, so we can test upgrading it
|
||||
if [ "$os_id $os_version_id" = 'ubuntu 20.04' ]; then
|
||||
export POSTGRESQL_VERSION=10
|
||||
fi
|
||||
|
||||
@@ -75,7 +75,7 @@ else
|
||||
"$ZULIP_PATH"/scripts/setup/install --self-signed-cert --hostname 127.0.0.1 --email circleci@example.com --postgresql-database-user zulipcustomuser --postgresql-database-name zulipcustomdb
|
||||
fi
|
||||
|
||||
if [ "$os_id $os_version_id" = 'ubuntu 18.04' ]; then
|
||||
if [ "$os_id $os_version_id" = 'ubuntu 20.04' ]; then
|
||||
if [ "$(crudini --get /etc/zulip/zulip.conf postgresql version)" != "10" ]; then
|
||||
echo "Installer did not install the PostgreSQL 10 that we asked for!"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user