mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 08:33:43 +00:00
tools/ci: Adjust ZULIP_PATH so it works for both CIs.
Until, we remove the circleci.
This commit is contained in:
committed by
Tim Abbott
parent
75ab26771b
commit
6a4792e844
@@ -136,19 +136,19 @@ aliases:
|
|||||||
name: install production
|
name: install production
|
||||||
command: |
|
command: |
|
||||||
sudo service rabbitmq-server restart
|
sudo service rabbitmq-server restart
|
||||||
sudo mispipe "/tmp/production-install 2>&1" ts
|
sudo --preserve-env=CIRCLECI mispipe "/tmp/production-install 2>&1" ts
|
||||||
|
|
||||||
- &verify_production
|
- &verify_production
|
||||||
run:
|
run:
|
||||||
name: verify install
|
name: verify install
|
||||||
command: |
|
command: |
|
||||||
sudo mispipe "/tmp/production-verify 2>&1" ts
|
sudo --preserve-env=CIRCLECI mispipe "/tmp/production-verify 2>&1" ts
|
||||||
|
|
||||||
- &upgrade_postgresql
|
- &upgrade_postgresql
|
||||||
run:
|
run:
|
||||||
name: upgrade postgresql
|
name: upgrade postgresql
|
||||||
command: |
|
command: |
|
||||||
sudo mispipe "/tmp/production-upgrade-pg 2>&1" ts
|
sudo --preserve-env=CIRCLECI mispipe "/tmp/production-upgrade-pg 2>&1" ts
|
||||||
|
|
||||||
- &check_xenial_provision_error
|
- &check_xenial_provision_error
|
||||||
run:
|
run:
|
||||||
|
|||||||
@@ -3,5 +3,9 @@
|
|||||||
set -e
|
set -e
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
ZULIP_PATH=/home/circleci/zulip
|
ZULIP_PATH=/home/github/zulip
|
||||||
|
if [ "$CIRCLECI" = true ]; then
|
||||||
|
ZULIP_PATH=/home/circleci/zulip
|
||||||
|
fi
|
||||||
|
|
||||||
tar -xf /tmp/zulip-server-test.tar.gz -C "$ZULIP_PATH" --strip-components=1
|
tar -xf /tmp/zulip-server-test.tar.gz -C "$ZULIP_PATH" --strip-components=1
|
||||||
|
|||||||
@@ -4,7 +4,10 @@
|
|||||||
set -e
|
set -e
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
ZULIP_PATH=/home/circleci/zulip
|
ZULIP_PATH=/home/github/zulip
|
||||||
|
if [ "$CIRCLECI" = true ]; then
|
||||||
|
ZULIP_PATH=/home/circleci/zulip
|
||||||
|
fi
|
||||||
|
|
||||||
# Do an apt upgrade to start with an up-to-date machine
|
# Do an apt upgrade to start with an up-to-date machine
|
||||||
APT_OPTIONS=(-o 'Dpkg::Options::=--force-confdef' -o 'Dpkg::Options::=--force-confold')
|
APT_OPTIONS=(-o 'Dpkg::Options::=--force-confdef' -o 'Dpkg::Options::=--force-confold')
|
||||||
|
|||||||
@@ -3,7 +3,10 @@
|
|||||||
set -e
|
set -e
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
ZULIP_PATH=/home/circleci/zulip
|
ZULIP_PATH=/home/github/zulip
|
||||||
|
if [ "$CIRCLECI" = true ]; then
|
||||||
|
ZULIP_PATH=/home/circleci/zulip
|
||||||
|
fi
|
||||||
|
|
||||||
supervisorctl stop all
|
supervisorctl stop all
|
||||||
"$ZULIP_PATH"/scripts/setup/upgrade-postgres
|
"$ZULIP_PATH"/scripts/setup/upgrade-postgres
|
||||||
|
|||||||
Reference in New Issue
Block a user