Skip to content

Commit 173ee29

Browse files
MAGECLOUD-4458: De-compose All Patches from ECE-Tools (#2)
1 parent ddf9889 commit 173ee29

File tree

140 files changed

+23816
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+23816
-0
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<!---
2+
Thank you for contributing to Magento.
3+
To help us process this issue we recommend that you add the following information:
4+
- Summary of the issue,
5+
- Information on your environment,
6+
- Steps to reproduce,
7+
- Expected and actual results,
8+
9+
Please also have a look at our guidelines article before adding a new issue https://github.com/magento/magento2/wiki/Issue-reporting-guidelines
10+
-->
11+
12+
### Preconditions
13+
<!---
14+
Please provide as detailed information about your environment as possible.
15+
For example Magento version, tag, HEAD, PHP & MySQL version, etc..
16+
-->
17+
1.
18+
2.
19+
20+
### Steps to reproduce
21+
<!---
22+
It is important to provide a set of clear steps to reproduce this bug.
23+
If relevant please include code samples
24+
-->
25+
1.
26+
2.
27+
3.
28+
29+
### Expected result
30+
<!--- Tell us what should happen -->
31+
1. [Screenshots, logs or description]
32+
33+
### Actual result
34+
<!--- Tell us what happens instead -->
35+
1. [Screenshots, logs or description]

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<!---
2+
Thank you for contributing to Magento.
3+
To help us process this pull request we recommend that you add the following information:
4+
- Summary of the pull request,
5+
- Issue(s) related to the changes made,
6+
- Manual testing scenarios,
7+
-->
8+
9+
<!--- Please provide a general summary of the Pull Request in the Title above -->
10+
11+
### Description
12+
<!---
13+
Please provide a description of the changes proposed in the pull request.
14+
Letting us know what has changed and why it needed changing will help us validate this pull request.
15+
-->
16+
17+
### Fixed Issues (if relevant)
18+
<!---
19+
If relevant, please provide a list of fixed issues in the format magento/magento-cloud-patches#<issue_number>.
20+
There could be 1 or more issues linked here and it will help us find some more information about the reasoning behind this change.
21+
-->
22+
1. magento/magento-cloud-patches#<issue_number>: Issue title
23+
2. ...
24+
25+
### Manual testing scenarios
26+
<!---
27+
Please provide a set of unambiguous steps to test the proposed code change.
28+
Giving us manual testing scenarios will help with the processing and validation process.
29+
-->
30+
1. ...
31+
2. ...
32+
33+
### Contribution checklist
34+
- [ ] Pull request has a meaningful description of its purpose
35+
- [ ] All commits are accompanied by meaningful commit messages
36+
- [ ] All new or changed code is covered with unit/integration tests (if applicable)
37+
- [ ] All automated tests passed successfully (all builds on Travis CI are green)

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.DS_Store
2+
/.idea
3+
/vendor
4+
/composer.phar
5+
/composer.lock
6+
/auth.json

.travis.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
dist: xenial
2+
3+
git:
4+
depth: false
5+
6+
language: php
7+
php:
8+
- '7.0'
9+
- '7.1'
10+
- '7.2'
11+
- '7.3'
12+
13+
install: composer update
14+
15+
script:
16+
- ./vendor/bin/phpcs ./src --standard=./tests/static/phpcs-ruleset.xml -p -n
17+
- ./vendor/bin/phpmd ./src xml ./tests/static/phpmd-ruleset.xml
18+
- ./vendor/bin/phpunit --configuration ./tests/unit

autoload.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
error_reporting(E_ALL);
7+
date_default_timezone_set('UTC');
8+
9+
if (!defined('BP')) {
10+
define('BP', dirname(__DIR__, 3));
11+
}
12+
13+
foreach ([__DIR__ . '/../../autoload.php', __DIR__ . '/vendor/autoload.php'] as $file) {
14+
if (file_exists($file)) {
15+
return require $file;
16+
}
17+
}
18+
19+
throw new RuntimeException('Required file \'autoload.php\' was not found.');

bin/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/dev-ece-patches

bin/ece-patches

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env php
2+
<?php
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
$container = require __DIR__ . '/../bootstrap.php';
8+
9+
$application = new Magento\CloudPatches\Application($container);
10+
$application->run();

bootstrap.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
require __DIR__ . '/autoload.php';
7+
8+
use Magento\CloudPatches\App\Container;
9+
10+
return new Container(__DIR__, BP);

composer.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"name": "magento/magento-cloud-patches",
3+
"description": "Provides critical fixes for Magento 2 Enterprise Edition",
4+
"type": "magento2-component",
5+
"version": "1.0.0",
6+
"license": "OSL-3",
7+
"require": {
8+
"php": "^7.0",
9+
"ext-json": "*",
10+
"composer/composer": "@stable",
11+
"symfony/config": "^3.3||^4.3",
12+
"symfony/console": "^2.6||^4.0",
13+
"symfony/dependency-injection": "^3.3||^4.3",
14+
"symfony/process": "^2.1||^4.1"
15+
},
16+
"conflict": {
17+
"symfony/process": "^4.2"
18+
},
19+
"require-dev": {
20+
"phpmd/phpmd": "@stable",
21+
"phpunit/phpunit": "^6.2",
22+
"squizlabs/php_codesniffer": "^3.0"
23+
},
24+
"bin": [
25+
"bin/ece-patches"
26+
],
27+
"autoload": {
28+
"psr-4": {
29+
"Magento\\CloudPatches\\": "src/"
30+
}
31+
},
32+
"scripts": {
33+
"test": [
34+
"@phpcs",
35+
"@phpmd",
36+
"@phpunit"
37+
],
38+
"phpcs": "phpcs src --standard=tests/static/phpcs-ruleset.xml -p -n",
39+
"phpmd": "phpmd src xml tests/static/phpmd-ruleset.xml",
40+
"phpunit": "phpunit --configuration tests/unit"
41+
},
42+
"config": {
43+
"sort-packages": true
44+
},
45+
"prefer-stable": true
46+
}

config/services.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<container xmlns="http://symfony.com/schema/dic/services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd">
3+
<services>
4+
<!-- Default configuration for services in *this* file -->
5+
<defaults autowire="true" public="true"/>
6+
7+
<prototype namespace="Magento\CloudPatches\" resource="../src/*" exclude="../src/{Test}"/>
8+
9+
<service id="Magento\CloudPatches\App\Container" autowire="false"/>
10+
<service id="Magento\CloudPatches\Filesystem\DirectoryList" autowire="false"/>
11+
<service id="Composer\Composer"/>
12+
<service id="Magento\CloudPatches\App\GenericException" autowire="false"/>
13+
<service id="Magento\CloudPatches\Command\Patch\ManagerException" autowire="false"/>
14+
<service id="Magento\CloudPatches\Patch\ApplierException" autowire="false"/>
15+
<service id="Magento\CloudPatches\Filesystem\FileNotFoundException" autowire="false"/>
16+
</services>
17+
</container>

0 commit comments

Comments
 (0)