1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
<?php
use Phing\Phing;
defined('PHING_TEST_BASE') || define('PHING_TEST_BASE', __DIR__);
$phingSource = getenv('PHING_SOURCE');
if (! is_string($phingSource)) {
echo 'PHING_SOURCE is not set';
exit(1);
}
$phingSource = realpath(rtrim($phingSource, '/'));
if (! is_dir($phingSource)) {
echo 'PHING_SOURCE is not a folder: ' . $phingSource;
exit(1);
}
set_include_path(
$phingSource . PATH_SEPARATOR . '/usr/share/php'
);
$phingAutoload = getenv('PHING_AUTOLOAD');
if (! is_string($phingAutoload)) {
echo 'PHING_AUTOLOAD is not set';
exit(1);
}
$phingAutoload = realpath($phingAutoload);
if (! is_file($phingAutoload)) {
echo 'PHING_AUTOLOAD is not a file: ' . $phingAutoload;
exit(1);
}
require_once $phingAutoload;
Phing::setProperty('phing.home', $phingSource);
Phing::startup();
error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE);
|