mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
ci: Test pgroonga installation.
This commit is contained in:
committed by
Tim Abbott
parent
86cf3be39f
commit
73055255bb
9
.github/workflows/production-suite.yml
vendored
9
.github/workflows/production-suite.yml
vendored
@@ -163,6 +163,7 @@ jobs:
|
||||
# Since actions/download-artifact@v2 loses all the permissions
|
||||
# of the tarball uploaded by the upload artifact fix those.
|
||||
chmod +x /tmp/production-upgrade-pg
|
||||
chmod +x /tmp/production-pgroonga
|
||||
chmod +x /tmp/production-install
|
||||
chmod +x /tmp/production-verify
|
||||
chmod +x /tmp/send-failure-message
|
||||
@@ -195,6 +196,14 @@ jobs:
|
||||
- name: Verify install
|
||||
run: sudo /tmp/production-verify
|
||||
|
||||
- name: Install pgroonga
|
||||
if: ${{ matrix.is_bionic }}
|
||||
run: sudo /tmp/production-pgroonga
|
||||
|
||||
- name: Verify install after installing pgroonga
|
||||
if: ${{ matrix.is_bionic }}
|
||||
run: sudo /tmp/production-verify
|
||||
|
||||
- name: Upgrade postgresql
|
||||
if: ${{ matrix.is_bionic }}
|
||||
run: sudo /tmp/production-upgrade-pg
|
||||
|
@@ -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 \
|
||||
|
14
tools/ci/production-pgroonga
Normal file
14
tools/ci/production-pgroonga
Normal 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
|
Reference in New Issue
Block a user