mirror of
https://github.com/zulip/zulip.git
synced 2025-11-17 20:41:46 +00:00
travis: Skip development database setup in production tests.
This saves about 20s on the runtime of the production build.
This commit is contained in:
@@ -191,6 +191,8 @@ def main():
|
||||
run(["sudo", "pg_createcluster", "-e", "utf8", "--start", POSTGRES_VERSION, "main"])
|
||||
run(["sudo", "service", "redis-server", "restart"])
|
||||
run(["sudo", "service", "memcached", "restart"])
|
||||
if '--production-travis' not in sys.argv:
|
||||
# These won't be used anyway
|
||||
run(["scripts/setup/configure-rabbitmq"])
|
||||
run(["tools/setup/postgres-init-dev-db"])
|
||||
run(["tools/do-destroy-rebuild-database"])
|
||||
|
||||
@@ -7,7 +7,7 @@ set -x
|
||||
# to conflicts over which version of postgres should be running.
|
||||
sudo apt-get remove postgresql-9.1 postgresql-9.2 postgresql-9.4 -y
|
||||
|
||||
python provision.py --travis
|
||||
python provision.py --travis --production-travis
|
||||
cp -a tools/travis/success-http-headers.txt ~/
|
||||
source /srv/zulip-venv/bin/activate
|
||||
./tools/build-release-tarball travis
|
||||
|
||||
Reference in New Issue
Block a user