From ffeca296de120d9f4320ac314fe0a325c5ef2df8 Mon Sep 17 00:00:00 2001 From: Robert Hafner Date: Thu, 27 Feb 2014 11:47:17 -0800 Subject: [PATCH] Added back distinct IP address for Travis and Vagrant --- tests/bootstrap.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 534aaa9..7597f3a 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -14,15 +14,16 @@ error_reporting(-1); define('TESTING', true); define('TEST_USER', 'testuser'); define('TEST_PASSWORD', 'applesauce'); -define('TESTING_SERVER_HOST', '172.31.1.2'); date_default_timezone_set('UTC'); if(getenv('TRAVIS')) { define('TESTING_ENVIRONMENT', 'TRAVIS'); + define('TESTING_SERVER_HOST', '127.0.0.1'); }else{ define('TESTING_ENVIRONMENT', 'VAGRANT'); + define('TESTING_SERVER_HOST', '172.31.1.2'); echo 'Initializing Environment using Vagrant' . PHP_EOL; passthru('/bin/bash ' . __DIR__ . '/../vendor/tedivm/dovecottesting/SetupEnvironment.sh'); echo 'Environment Initialized' . PHP_EOL . PHP_EOL . PHP_EOL;