deployer/test/bootstrap.php

26 lines
673 B
PHP
Raw Normal View History

2013-07-11 15:47:09 +04:00
<?php
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
);
}
2017-03-16 20:03:11 +07:00
2017-03-19 23:44:11 +07:00
define('DEPLOYER', true);
define('DEPLOYER_BIN', __DIR__ . '/../bin/dep');
2017-03-21 15:05:21 +07:00
define('DEPLOYER_PARALLEL_PTY', false);
2017-03-21 16:23:41 +07:00
define('DEPLOYER_FIXTURES', __DIR__ . '/fixture');
2017-03-19 23:44:11 +07:00
2017-03-19 18:15:02 +07:00
require_once __DIR__ . '/recipe/tester.php';