ci: Test pgroonga installation.

This commit is contained in:
Alex Vandiver
2021-11-18 17:04:30 -08:00
committed by Tim Abbott
parent 86cf3be39f
commit 73055255bb
3 changed files with 24 additions and 0 deletions

View File

@@ -37,6 +37,7 @@ cp -a \
tools/ci/production-install \
tools/ci/production-verify \
tools/ci/production-upgrade \
tools/ci/production-pgroonga \
tools/ci/production-upgrade-pg \
tools/ci/send-failure-message \
package.json yarn.lock \

View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
# This tests installing the pgroonga extension
set -e
set -x
crudini --set /etc/zulip/zulip.conf machine pgroonga enabled
/home/zulip/deployments/current/scripts/zulip-puppet-apply -f
echo 'USING_PGROONGA = True' >>/etc/zulip/settings.py
su zulip -c '/home/zulip/deployments/current/manage.py migrate pgroonga'
su zulip -c /home/zulip/deployments/current/scripts/restart-server
echo 'Installation of pgroonga complete!'
exit 0