mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 02:48:00 +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
8
.github/workflows/production-suite.yml
vendored
8
.github/workflows/production-suite.yml
vendored
@@ -197,19 +197,19 @@ jobs:
|
|||||||
run: sudo /tmp/production-verify ${{ matrix.extra-args }}
|
run: sudo /tmp/production-verify ${{ matrix.extra-args }}
|
||||||
|
|
||||||
- name: Install pgroonga
|
- name: Install pgroonga
|
||||||
if: ${{ matrix.is_bionic }}
|
if: ${{ matrix.os == 'focal' }}
|
||||||
run: sudo /tmp/production-pgroonga
|
run: sudo /tmp/production-pgroonga
|
||||||
|
|
||||||
- name: Verify install after installing pgroonga
|
- name: Verify install after installing pgroonga
|
||||||
if: ${{ matrix.is_bionic }}
|
if: ${{ matrix.os == 'focal' }}
|
||||||
run: sudo /tmp/production-verify ${{ matrix.extra-args }}
|
run: sudo /tmp/production-verify ${{ matrix.extra-args }}
|
||||||
|
|
||||||
- name: Upgrade postgresql
|
- name: Upgrade postgresql
|
||||||
if: ${{ matrix.is_bionic }}
|
if: ${{ matrix.os == 'focal' }}
|
||||||
run: sudo /tmp/production-upgrade-pg
|
run: sudo /tmp/production-upgrade-pg
|
||||||
|
|
||||||
- name: Verify install after upgrading postgresql
|
- name: Verify install after upgrading postgresql
|
||||||
if: ${{ matrix.is_bionic }}
|
if: ${{ matrix.os == 'focal' }}
|
||||||
run: sudo /tmp/production-verify ${{ matrix.extra-args }}
|
run: sudo /tmp/production-verify ${{ matrix.extra-args }}
|
||||||
|
|
||||||
- name: Report status
|
- name: Report status
|
||||||
|
|||||||
@@ -61,8 +61,8 @@ os_info="$(
|
|||||||
read -r os_version_id
|
read -r os_version_id
|
||||||
} <<<"$os_info"
|
} <<<"$os_info"
|
||||||
|
|
||||||
# Pin to PostgreSQL 10 on Bionic, so we can test upgrading it
|
# Pin to PostgreSQL 10 on Ubuntu 20.04, so we can test upgrading it
|
||||||
if [ "$os_id $os_version_id" = 'ubuntu 18.04' ]; then
|
if [ "$os_id $os_version_id" = 'ubuntu 20.04' ]; then
|
||||||
export POSTGRESQL_VERSION=10
|
export POSTGRESQL_VERSION=10
|
||||||
fi
|
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
|
"$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
|
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
|
if [ "$(crudini --get /etc/zulip/zulip.conf postgresql version)" != "10" ]; then
|
||||||
echo "Installer did not install the PostgreSQL 10 that we asked for!"
|
echo "Installer did not install the PostgreSQL 10 that we asked for!"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user