From a5b8a41ead535c22d5ac269b0c3d77a089cc1405 Mon Sep 17 00:00:00 2001 From: Martyn Inglis Date: Fri, 22 Jul 2016 20:47:50 +0100 Subject: [PATCH] Override postgresc connection for jenkins If TEST_DATABASE is set then the postgres connection is set to that. Jenkins sets it to the RDS instance that is in that AWS Account --- environment_test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/environment_test.sh b/environment_test.sh index 34ac45073..010810394 100644 --- a/environment_test.sh +++ b/environment_test.sh @@ -10,7 +10,7 @@ export INVITATION_EXPIRATION_DAYS=2 export NOTIFY_JOB_QUEUE='notify-jobs-queue-test' export NOTIFICATION_QUEUE_PREFIX='notification_development-test' export SECRET_KEY='secret-key' -export SQLALCHEMY_DATABASE_URI='postgresql://localhost/test_notification_api' +export SQLALCHEMY_DATABASE_URI=${TEST_DATABASE:='postgresql://localhost/test_notification_api'} export VERIFY_CODE_FROM_EMAIL_ADDRESS='no-reply@notify.works' export FIRETEXT_API_KEY="Firetext" export NOTIFY_EMAIL_DOMAIN="test.notify.com" @@ -23,4 +23,4 @@ export STATSD_PORT=1000 export STATSD_PREFIX="stats-prefix" export API_HOST_NAME="http://localhost:6011" export FROM_NUMBER='from_number' -export MMG_URL="https://api.mmg.co.uk/json/api.php" \ No newline at end of file +export MMG_URL="https://api.mmg.co.uk/json/api.php"