Skip to content

Commit

Permalink
Merge pull request #12 from magento-commerce/revert-11-AC-3684
Browse files Browse the repository at this point in the history
Revert "AC-3684 Release magento components with symfony 5.4 support"
  • Loading branch information
xmav authored Jun 27, 2022
2 parents d90a61e + 53c85c9 commit dc7065e
Show file tree
Hide file tree
Showing 59 changed files with 38 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ composer.lock export-ignore
build.xml export-ignore
.gitattributes export-ignore
.gitignore export-ignore
/dev export-ignore
/tests export-ignore
/doc export-ignore
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
/composer.phar
/composer.lock
/vendor
/dev/tests/FullStackTest/logs
/tests/FullStackTest/logs
21 changes: 21 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<project name="magento-composer-installer">
<target name="phpdoc">
<condition property="phpdoc" value="phpdoc.bat">
<os family="windows" />
</condition>
<property name="phpdoc" value="phpdoc" />

<exec executable="${phpdoc}">
<arg line="-d src -t doc --title=${ant.project.name}" />
</exec>
</target>

<target name="phpunit">
<condition property="phpunit" value="vendor/bin/phpunit.bat">
<os family="windows" />
</condition>
<property name="phpunit" value="vendor/bin/phpunit" />

<exec executable="${phpunit}" />
</target>
</project>
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"archive": {
"exclude": [
"vendor",
"dev"
"/tests/FullStackTest/"
]
},
"extra": {
Expand Down
5 changes: 0 additions & 5 deletions dev/tests/bootstrap.php

This file was deleted.

4 changes: 2 additions & 2 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
bootstrap="dev/tests/bootstrap.php">
bootstrap="tests/bootstrap.php">
<coverage>
<include>
<directory>./src/</directory>
Expand All @@ -18,7 +18,7 @@
</coverage>
<testsuites>
<testsuite name="Magentohackathon Magento Installer Test Suite">
<directory>./dev/tests/MagentoHackathon</directory>
<directory>./tests/MagentoHackathon</directory>
</testsuite>
</testsuites>
<groups>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static function setUpBeforeClass(): void
@unlink(self::getBasePath().'/magento-modules/vendor/theseer/directoryscanner/tests/_data/nested/empty');

$process = Process::fromShellCommandline(
self::getProjectRoot() . DIRECTORY_SEPARATOR . self::getComposerCommand().' archive --format=zip --dir="dev/tests/FullStackTest/artifact" -vvv',
'./' . self::getComposerCommand().' archive --format=zip --dir="tests/FullStackTest/artifact" -vvv',
self::getProjectRoot()
);
$process->run();
Expand Down Expand Up @@ -94,7 +94,7 @@ protected static function getBasePath(){
}

protected static function getProjectRoot(){
return realpath(__DIR__.'/../../../../../..');
return realpath(__DIR__.'/../../../../..');
}

protected static function getComposerCommand(){
Expand All @@ -107,7 +107,7 @@ protected static function getComposerArgs(){
}

protected static function logProcessOutput(Process $process, $name = null){
if ($name === null) {
if($name === null) {
$name = self::$processLogCounter;
self::$processLogCounter++;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ protected function prepareCleanDirectories()
public function testGlobalInstall()
{
$process = Process::fromShellCommandline(
self::getProjectRoot() . DIRECTORY_SEPARATOR . self::getComposerCommand() . ' global install',
'./' . self::getComposerCommand() . ' global install',
self::getProjectRoot(),
['COMPOSER_HOME' => self::getBasePath() . '/home']
);
Expand All @@ -42,7 +42,7 @@ public function testGlobalInstall()
public function testGlobalUpdate()
{
$process = Process::fromShellCommandline(
self::getProjectRoot() . DIRECTORY_SEPARATOR . self::getComposerCommand() . ' global update',
'./' . self::getComposerCommand() . ' global update',
self::getProjectRoot(),
['COMPOSER_HOME' => self::getBasePath() . '/home']
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ protected function tearDown(): void
public static function setUpBeforeClass(): void
{
parent::setUpBeforeClass();
$packagesPath = self::getProjectRoot() .'/dev/tests/res/packages';
$packagesPath = self::getProjectRoot() .'/tests/res/packages';
$directory = new \DirectoryIterator($packagesPath);
/** @var \DirectoryIterator $fileinfo */
foreach($directory as $file){
Expand Down Expand Up @@ -190,7 +190,7 @@ protected function changeModuleComposerFileAndUpdate($file, $command = "update")
$magentoModuleComposerFile
);

$composerPath = self::getProjectRoot() . DIRECTORY_SEPARATOR . self::getComposerCommand();
$composerPath = '../../.././composer.phar';
$process = Process::fromShellCommandline(
$composerPath . ' ' . $command. ' '. self::getComposerArgs().' --optimize-autoloader --working-dir="./"',
self::getBasePath() . '/magento-modules'
Expand Down
5 changes: 5 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

// Set up autoloading
require_once __DIR__ . '/../vendor/autoload.php';

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit dc7065e

Please sign in to comment.