deployer/test/bootstrap.php

25 lines
686 B
PHP
Raw Normal View History

2013-07-11 15:47:09 +04:00
<?php
// Search and include "autoload" file
2015-06-12 23:23:30 +07:00
$loaded = false;
2015-06-17 19:30:25 +02:00
foreach ([__DIR__ . '/../../../autoload.php', __DIR__ . '/../vendor/autoload.php'] as $file) {
2015-06-12 23:23:30 +07:00
if (file_exists($file)) {
require $file;
$loaded = true;
break;
}
}
2015-06-12 23:23:30 +07:00
if (!$loaded) {
die(
'You need to set up the project dependencies using the following commands:' . PHP_EOL .
'wget http://getcomposer.org/composer.phar' . PHP_EOL .
'php composer.phar install' . PHP_EOL
);
}
// Include common files
require_once __DIR__ . '/../src/functions.php';
require_once __DIR__ . '/src/Helper/DeployerHelper.php';
2015-02-15 13:58:49 +03:00
require_once __DIR__ . '/recipe/Helper/RecipeTester.php';