Files
zulip/tools/travis/setup-backend
rht dcd80e6650 travis/setup-backend: Remove the '--travis' flag in tools/provision.
Whether the env is Travis or not, this has been detected via $TRAVIS env var.
Proof:
6fbf41bdbc/tools/provision (L38)
2017-10-06 11:20:25 -07:00

21 lines
718 B
Bash
Executable File

#!/bin/bash
set -e
set -x
# This is just a thin wrapper around provision.
# Provisioning may fail due to many issues but most of the times a network
# connection issue is the reason. So we are going to retry entire provisioning
# once again if that fixes our problem.
if ! tools/provision; then
echo "\`provision\`: Something went wrong with the provisioning, might be a network issue, Retrying to provision..."
tools/provision
fi
# Create nagios state so that we can test-run the Nagios checks
# against the run-dev.py server, as a form of end-to-end test
# (tools/).
#
# TODO: Is this actually required? We don't seem to use it.
sudo mkdir -p /var/lib/nagios_state
sudo chown travis /var/lib/nagios_state