mirror of https://github.com/zulip/zulip.git
ci: Test pgroonga installation.
This commit is contained in:
parent
86cf3be39f
commit
73055255bb
|
@ -163,6 +163,7 @@ jobs:
|
||||||
# Since actions/download-artifact@v2 loses all the permissions
|
# Since actions/download-artifact@v2 loses all the permissions
|
||||||
# of the tarball uploaded by the upload artifact fix those.
|
# of the tarball uploaded by the upload artifact fix those.
|
||||||
chmod +x /tmp/production-upgrade-pg
|
chmod +x /tmp/production-upgrade-pg
|
||||||
|
chmod +x /tmp/production-pgroonga
|
||||||
chmod +x /tmp/production-install
|
chmod +x /tmp/production-install
|
||||||
chmod +x /tmp/production-verify
|
chmod +x /tmp/production-verify
|
||||||
chmod +x /tmp/send-failure-message
|
chmod +x /tmp/send-failure-message
|
||||||
|
@ -195,6 +196,14 @@ jobs:
|
||||||
- name: Verify install
|
- name: Verify install
|
||||||
run: sudo /tmp/production-verify
|
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
|
- name: Upgrade postgresql
|
||||||
if: ${{ matrix.is_bionic }}
|
if: ${{ matrix.is_bionic }}
|
||||||
run: sudo /tmp/production-upgrade-pg
|
run: sudo /tmp/production-upgrade-pg
|
||||||
|
|
|
@ -37,6 +37,7 @@ cp -a \
|
||||||
tools/ci/production-install \
|
tools/ci/production-install \
|
||||||
tools/ci/production-verify \
|
tools/ci/production-verify \
|
||||||
tools/ci/production-upgrade \
|
tools/ci/production-upgrade \
|
||||||
|
tools/ci/production-pgroonga \
|
||||||
tools/ci/production-upgrade-pg \
|
tools/ci/production-upgrade-pg \
|
||||||
tools/ci/send-failure-message \
|
tools/ci/send-failure-message \
|
||||||
package.json yarn.lock \
|
package.json yarn.lock \
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue