2015-10-15 01:47:42 +02:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
set -x
|
2017-01-14 11:19:26 +01:00
|
|
|
|
2017-06-06 03:15:17 +02:00
|
|
|
# This is just a thin wrapper around provision.
|
2017-06-13 22:00:11 +02:00
|
|
|
# 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 --travis; then
|
|
|
|
echo "\`provision\`: Something went wrong with the provisioning, might be a network issue, Retrying to provision..."
|
|
|
|
tools/provision --travis
|
|
|
|
fi
|
2017-06-06 03:15:17 +02:00
|
|
|
|
|
|
|
# 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.
|
2016-08-11 22:56:48 +02:00
|
|
|
sudo mkdir -p /var/lib/nagios_state
|
|
|
|
sudo chown travis /var/lib/nagios_state
|