Skip to content

Commit 603817a

Browse files
Merge pull request #112 from magento/develop
2 parents 4e02921 + ba35173 commit 603817a

File tree

192 files changed

+10389
-1887
lines changed

Some content is hidden

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

192 files changed

+10389
-1887
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ vendor
33
composer.phar
44
phpunit.xml
55
composer.lock
6-
6+
.DS_Store

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ dist: trusty
33
addons:
44
hosts:
55
- magento2.travis
6+
- magento2.docker
67
services:
78
- mysql
9+
- docker
810
language: php
911
php:
1012
- 7.0
@@ -18,10 +20,13 @@ env:
1820
- TEST_SUITE=static
1921
- TEST_SUITE=unit
2022
- TEST_SUITE=integration
23+
- TEST_SUITE=integration-docker
2124
matrix:
2225
exclude:
2326
- php: 7.1
2427
env: TEST_SUITE=integration
28+
- php: 7.1
29+
env: TEST_SUITE=integration-docker
2530
cache:
2631
apt: true
2732
directories:
@@ -31,5 +36,7 @@ install: composer install --no-interaction
3136
script:
3237
- if [ $TEST_SUITE == "static" ]; then phpcs src --standard=tests/static/phpcs-ruleset.xml -p -n; fi;
3338
- if [ $TEST_SUITE == "static" ]; then phpmd src xml tests/static/phpmd-ruleset.xml; fi;
39+
- if [ $TEST_SUITE == "static" ]; then phpunit --configuration tests/unit/phpunit.xml.dist --coverage-clover tests/unit/tmp/clover.xml && php tests/unit/code-coverage.php tests/unit/tmp/clover.xml $MIN_CODE_COVERAGE; fi;
3440
- if [ $TEST_SUITE == "unit" ]; then phpunit --configuration tests/unit/phpunit.xml.dist; fi;
3541
- if [ $TEST_SUITE == "integration" ]; then phpunit --verbose --configuration tests/integration/phpunit.xml.dist; fi;
42+
- if [ $TEST_SUITE == "integration-docker" ]; then cd tests/integration-docker && docker-compose run cli magento-command; fi;

autoload.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
*/
1212
$magentoRoot = __DIR__ . '/../../../';
1313

14+
if (!defined('BP')) {
15+
define('BP', realpath($magentoRoot));
16+
}
17+
1418
if (!file_exists($magentoRoot . '/app/etc/NonComposerComponentRegistration.php') &&
1519
file_exists($magentoRoot . '/init/app/etc/NonComposerComponentRegistration.php')
1620
) {
@@ -25,3 +29,5 @@
2529
return require $file;
2630
}
2731
}
32+
33+
throw new \RuntimeException('Required file \'autoload.php\' was not found.');

bin/ece-tools

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Copyright © Magento, Inc. All rights reserved.
55
* See COPYING.txt for license details.
66
*/
7-
require_once __DIR__ . '/../autoload.php';
7+
require_once __DIR__ . '/../bootstrap.php';
88

99
$application = \Magento\MagentoCloud\App\Bootstrap::create()->createApplication();
1010
$application->run();

bootstrap.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
require_once __DIR__ . '/autoload.php';
10+
11+
$handler = new \Magento\MagentoCloud\App\ErrorHandler();
12+
set_error_handler([$handler, 'handle']);

composer.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,25 @@
1111
"monolog/monolog": "^1.17",
1212
"symfony/console": "^2.6",
1313
"illuminate/container": "^5.5",
14+
"illuminate/config": "^5.5",
1415
"psr/log": "^1.0",
1516
"psr/container": "^1.0",
1617
"composer/composer": "@stable",
17-
"composer/semver": "^1.4"
18+
"composer/semver": "^1.4",
19+
"symfony/yaml": "^3.3"
1820
},
1921
"require-dev": {
2022
"phpunit/phpunit": "~6.2.0",
2123
"squizlabs/php_codesniffer": " ^3.0",
2224
"phpmd/phpmd": "@stable",
2325
"php-mock/php-mock-phpunit": "^2.0",
24-
"phpunit/php-code-coverage": "^5.2",
25-
"illuminate/config": "^5.5"
26+
"phpunit/php-code-coverage": "^5.2"
2627
},
2728
"bin": [
29+
"bin/ece-tools",
2830
"m2-ece-build",
2931
"m2-ece-deploy",
30-
"m2-ece-scd-dump",
31-
"bin/ece-tools"
32+
"m2-ece-scd-dump"
3233
],
3334
"autoload": {
3435
"psr-4": {

m2-ece-build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Copyright © Magento, Inc. All rights reserved.
55
* See COPYING.txt for license details.
66
*/
7-
require_once __DIR__ . '/autoload.php';
7+
require_once __DIR__ . '/bootstrap.php';
88

99
$application = \Magento\MagentoCloud\App\Bootstrap::create()->createApplication();
1010
$application->setDefaultCommand('build');

m2-ece-deploy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Copyright © Magento, Inc. All rights reserved.
55
* See COPYING.txt for license details.
66
*/
7-
require_once __DIR__ . '/autoload.php';
7+
require_once __DIR__ . '/bootstrap.php';
88

99
$application = \Magento\MagentoCloud\App\Bootstrap::create()->createApplication();
1010
$application->setDefaultCommand('deploy');

m2-ece-scd-dump

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Copyright © Magento, Inc. All rights reserved.
55
* See COPYING.txt for license details.
66
*/
7-
require_once __DIR__ . '/autoload.php';
7+
require_once __DIR__ . '/bootstrap.php';
88

99
$application = \Magento\MagentoCloud\App\Bootstrap::create()->createApplication();
1010
$application->setDefaultCommand('dump');

0 commit comments

Comments
 (0)