Skip to content

Commit

Permalink
Added back distinct IP address for Travis and Vagrant
Browse files Browse the repository at this point in the history
  • Loading branch information
tedivm committed Feb 27, 2014
1 parent 56dc838 commit ffeca29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,16 @@
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;
Expand Down

0 comments on commit ffeca29

Please sign in to comment.