mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 09:12:51 +01:00
Rename FIXTURES to DEPLOYER_FIXTURES
This commit is contained in:
parent
254cf2618a
commit
231b81d917
@ -20,6 +20,6 @@ if (!$loaded) {
|
||||
define('DEPLOYER', true);
|
||||
define('DEPLOYER_BIN', __DIR__ . '/../bin/dep');
|
||||
define('DEPLOYER_PARALLEL_PTY', false);
|
||||
define('FIXTURES', __DIR__ . '/fixture');
|
||||
define('DEPLOYER_FIXTURES', __DIR__ . '/fixture');
|
||||
|
||||
require_once __DIR__ . '/recipe/tester.php';
|
||||
|
@ -14,7 +14,7 @@ class DeployTest extends DepCase
|
||||
{
|
||||
protected function load()
|
||||
{
|
||||
require FIXTURES . '/recipe/deploy.php';
|
||||
require DEPLOYER_FIXTURES . '/recipe/deploy.php';
|
||||
}
|
||||
|
||||
public function testDeploy()
|
||||
|
@ -13,7 +13,7 @@ class ParallelTest extends DepCase
|
||||
{
|
||||
protected function load()
|
||||
{
|
||||
require FIXTURES . '/recipe/deploy.php';
|
||||
require DEPLOYER_FIXTURES . '/recipe/deploy.php';
|
||||
}
|
||||
|
||||
public function testDeploy()
|
||||
@ -21,7 +21,7 @@ class ParallelTest extends DepCase
|
||||
$output = $this->start('deploy',
|
||||
[
|
||||
'--parallel' => true,
|
||||
'--file' => FIXTURES . '/recipe/deploy.php'
|
||||
'--file' => DEPLOYER_FIXTURES . '/recipe/deploy.php'
|
||||
],
|
||||
[
|
||||
'verbosity' => OutputInterface::VERBOSITY_DEBUG
|
||||
|
@ -48,13 +48,13 @@ abstract class DepCase extends BaseTestCase
|
||||
public static function setUpBeforeClass()
|
||||
{
|
||||
// Prepare FS
|
||||
self::$deployPath = FIXTURES . '/.localhost';
|
||||
self::$deployPath = DEPLOYER_FIXTURES . '/.localhost';
|
||||
self::cleanUp();
|
||||
mkdir(self::$deployPath);
|
||||
self::$deployPath = realpath(self::$deployPath);
|
||||
|
||||
// Init repository
|
||||
$repository = FIXTURES . '/repository';
|
||||
$repository = DEPLOYER_FIXTURES . '/repository';
|
||||
\exec("cd $repository && git init");
|
||||
\exec("cd $repository && git add .");
|
||||
\exec("cd $repository && git config user.name 'John Smith'");
|
||||
|
Loading…
x
Reference in New Issue
Block a user