Skip to content

Commit e0e3764

Browse files
committed
Merge branch 'develop' of github.com:magento/magento2 into develop
keeping the forked develop branch updated with Magento 2 develop branch
2 parents e5ab63d + 0c69ba5 commit e0e3764

File tree

26,565 files changed

+474759
-142416
lines changed

Some content is hidden

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

26,565 files changed

+474759
-142416
lines changed

.gitignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@
55
/.settings
66
atlassian*
77
/nbproject
8+
/robots.txt
9+
/pub/robots.txt
810
/sitemap
911
/sitemap.xml
12+
/pub/sitemap
13+
/pub/sitemap.xml
1014
/.idea
1115
/.gitattributes
1216
/app/config_sandbox
@@ -23,17 +27,28 @@ atlassian*
2327
/lib/internal/flex/varien/.settings
2428
/node_modules
2529
/.grunt
30+
/Gruntfile.js
31+
/package.json
32+
/.php_cs
33+
/.php_cs.cache
34+
/grunt-config.json
35+
/dev/tools/grunt/configs/local-themes.js
2636

2737
/pub/media/*.*
2838
!/pub/media/.htaccess
39+
/pub/media/attribute/*
40+
!/pub/media/attribute/.htaccess
41+
/pub/media/analytics/*
2942
/pub/media/catalog/*
3043
!/pub/media/catalog/.htaccess
3144
/pub/media/customer/*
3245
!/pub/media/customer/.htaccess
3346
/pub/media/downloadable/*
3447
!/pub/media/downloadable/.htaccess
48+
/pub/media/favicon/*
3549
/pub/media/import/*
3650
!/pub/media/import/.htaccess
51+
/pub/media/logo/*
3752
/pub/media/theme/*
3853
/pub/media/theme_customization/*
3954
!/pub/media/theme_customization/.htaccess
@@ -49,3 +64,6 @@ atlassian*
4964
!/var/.htaccess
5065
/vendor/*
5166
!/vendor/.htaccess
67+
/generated/*
68+
!/generated/.htaccess
69+
.DS_Store

.htaccess

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232

3333
DirectoryIndex index.php
3434

35+
<IfModule mod_php5.c>
3536
############################################
3637
## adjust memory limit
3738

@@ -53,7 +54,30 @@
5354
## disable user agent verification to not break multiple image upload
5455

5556
php_flag suhosin.session.cryptua off
57+
</IfModule>
58+
<IfModule mod_php7.c>
59+
############################################
60+
## adjust memory limit
61+
62+
php_value memory_limit 768M
63+
php_value max_execution_time 18000
64+
65+
############################################
66+
## disable automatic session start
67+
## before autoload was initialized
68+
69+
php_flag session.auto_start off
70+
71+
############################################
72+
## enable resulting html compression
73+
74+
#php_flag zlib.output_compression on
5675

76+
###########################################
77+
## disable user agent verification to not break multiple image upload
78+
79+
php_flag suhosin.session.cryptua off
80+
</IfModule>
5781
<IfModule mod_security.c>
5882
###########################################
5983
## disable POST processing to not break multiple image upload
@@ -198,7 +222,7 @@
198222
order allow,deny
199223
deny from all
200224
</Files>
201-
<Files .php_cs>
225+
<Files .php_cs.dist>
202226
order allow,deny
203227
deny from all
204228
</Files>

.htaccess.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@
198198
order allow,deny
199199
deny from all
200200
</Files>
201-
<Files .php_cs>
201+
<Files .php_cs.dist>
202202
order allow,deny
203203
deny from all
204204
</Files>

.php_cs

Lines changed: 0 additions & 53 deletions
This file was deleted.

.php_cs.dist

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
7+
/**
8+
* Pre-commit hook installation:
9+
* vendor/bin/static-review.php hook:install dev/tools/Magento/Tools/StaticReview/pre-commit .git/hooks/pre-commit
10+
*/
11+
$finder = PhpCsFixer\Finder::create()
12+
->name('*.phtml')
13+
->exclude('dev/tests/functional/generated')
14+
->exclude('dev/tests/functional/var')
15+
->exclude('dev/tests/functional/vendor')
16+
->exclude('dev/tests/integration/tmp')
17+
->exclude('dev/tests/integration/var')
18+
->exclude('lib/internal/Cm')
19+
->exclude('lib/internal/Credis')
20+
->exclude('lib/internal/Less')
21+
->exclude('lib/internal/LinLibertineFont')
22+
->exclude('pub/media')
23+
->exclude('pub/static')
24+
->exclude('setup/vendor')
25+
->exclude('var');
26+
27+
return PhpCsFixer\Config::create()
28+
->setFinder($finder)
29+
->setRules([
30+
'@PSR2' => true,
31+
'array_syntax' => ['syntax' => 'short'],
32+
'concat_space' => ['spacing' => 'one'],
33+
'include' => true,
34+
'new_with_braces' => true,
35+
'no_empty_statement' => true,
36+
'no_extra_consecutive_blank_lines' => true,
37+
'no_leading_import_slash' => true,
38+
'no_leading_namespace_whitespace' => true,
39+
'no_multiline_whitespace_around_double_arrow' => true,
40+
'no_multiline_whitespace_before_semicolons' => true,
41+
'no_singleline_whitespace_before_semicolons' => true,
42+
'no_trailing_comma_in_singleline_array' => true,
43+
'no_unused_imports' => true,
44+
'no_whitespace_in_blank_line' => true,
45+
'object_operator_without_whitespace' => true,
46+
'ordered_imports' => true,
47+
'standardize_not_equals' => true,
48+
'ternary_operator_spaces' => true,
49+
]);

.travis.yml

Lines changed: 34 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,63 @@
11
sudo: required
22
dist: trusty
3+
group: edge
34
addons:
45
apt:
56
packages:
67
- mysql-server-5.6
78
- mysql-client-core-5.6
89
- mysql-client-5.6
910
- postfix
11+
firefox: "46.0"
12+
hosts:
13+
- magento2.travis
1014
language: php
1115
php:
12-
- 5.6
1316
- 7.0
17+
- 7.1
1418
env:
1519
global:
1620
- COMPOSER_BIN_DIR=~/bin
1721
- INTEGRATION_SETS=3
22+
- NODE_JS_VERSION=6
23+
- MAGENTO_HOST_NAME="magento2.travis"
1824
matrix:
1925
- TEST_SUITE=unit
26+
- TEST_SUITE=static
27+
- TEST_SUITE=js GRUNT_COMMAND=spec
28+
- TEST_SUITE=js GRUNT_COMMAND=static
2029
- TEST_SUITE=integration INTEGRATION_INDEX=1
2130
- TEST_SUITE=integration INTEGRATION_INDEX=2
2231
- TEST_SUITE=integration INTEGRATION_INDEX=3
23-
- TEST_SUITE=static
24-
cache:
25-
apt: true
26-
directories: $HOME/.composer/cache
32+
- TEST_SUITE=functional ACCEPTANCE_INDEX=1
33+
- TEST_SUITE=functional ACCEPTANCE_INDEX=2
2734
matrix:
2835
exclude:
2936
- php: 7.0
3037
env: TEST_SUITE=static
38+
- php: 7.0
39+
env: TEST_SUITE=js GRUNT_COMMAND=spec
40+
- php: 7.0
41+
env: TEST_SUITE=js GRUNT_COMMAND=static
42+
- php: 7.0
43+
env: TEST_SUITE=functional ACCEPTANCE_INDEX=1
44+
- php: 7.0
45+
env: TEST_SUITE=functional ACCEPTANCE_INDEX=2
46+
cache:
47+
apt: true
48+
directories:
49+
- $HOME/.composer/cache
50+
- $HOME/.nvm
51+
- $HOME/node_modules
52+
- $HOME/yarn.lock
3153
before_install: ./dev/travis/before_install.sh
3254
install: composer install --no-interaction --prefer-dist
3355
before_script: ./dev/travis/before_script.sh
34-
script:
35-
- cd dev/tests/$TEST_SUITE
56+
script:
57+
# Set arguments for variants of phpunit based tests; '|| true' prevents failing script when leading test fails
3658
- test $TEST_SUITE = "static" && TEST_FILTER='--filter "Magento\\Test\\Php\\LiveCodeTest"' || true
37-
- phpunit $TEST_FILTER
59+
- test $TEST_SUITE = "functional" && TEST_FILTER='dev/tests/functional/testsuites/Magento/Mtf/TestSuite/InjectableTests.php' || true
60+
61+
# The scripts for grunt/phpunit type tests
62+
- if [ $TEST_SUITE != "js" ]; then phpunit -c dev/tests/$TEST_SUITE $TEST_FILTER; fi
63+
- if [ $TEST_SUITE == "js" ]; then grunt $GRUNT_COMMAND; fi

.user.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
memory_limit = 768M
2+
max_execution_time = 18000
3+
session.auto_start = off
4+
suhosin.session.cryptua = off

CONTRIBUTING.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,8 @@ If you are a new GitHub user, we recommend that you create your own [free github
2929
3. Create and test your work.
3030
4. Fork the Magento 2 repository according to [Fork a repository instructions](http://devdocs.magento.com/guides/v2.0/contributor-guide/contributing.html#fork) and when you are ready to send us a pull request – follow [Create a pull request instructions](http://devdocs.magento.com/guides/v2.0/contributor-guide/contributing.html#pull_request).
3131
5. Once your contribution is received, Magento 2 development team will review the contribution and collaborate with you as needed to improve the quality of the contribution.
32+
33+
## Code of Conduct
34+
35+
Please note that this project is released with a Contributor Code of Conduct. We expect you to agree to its terms when participating in this project.
36+
The full text is available in the repository [Wiki](https://github.com/magento/magento2/wiki/Magento-Code-of-Conduct).

COPYING.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
Copyright © 2013-2017 Magento, Inc.
2+
13
Each Magento source file included in this distribution is licensed under OSL 3.0 or the Magento Enterprise Edition (MEE) license
24

35
http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
46
Please see LICENSE.txt for the full text of the OSL 3.0 license or contact [email protected] for a copy.
57

68
Subject to Licensee's payment of fees and compliance with the terms and conditions of the MEE License, the MEE License supersedes the OSL 3.0 license for each source file.
7-
Please see <insert file name of the MEE license> for the full text of the MEE License or visit http://magento.com/legal/terms/enterprise.
9+
Please see LICENSE_EE.txt for the full text of the MEE License or visit http://magento.com/legal/terms/enterprise.

Gruntfile.js.sample

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11
/**
2-
* Copyright © 2016 Magento. All rights reserved.
2+
* Copyright © Magento, Inc. All rights reserved.
33
* See COPYING.txt for license details.
44
*/
55

66
// For performance use one level down: 'name/{,*/}*.js'
77
// If you want to recursively match all subfolders, use: 'name/**/*.js'
8+
89
module.exports = function (grunt) {
910
'use strict';
1011

1112
var _ = require('underscore'),
1213
path = require('path'),
13-
themes = require('./dev/tools/grunt/configs/themes'),
14+
filesRouter = require('./dev/tools/grunt/tools/files-router'),
1415
configDir = './dev/tools/grunt/configs',
15-
tasks = grunt.file.expand('./dev/tools/grunt/tasks/*');
16+
tasks = grunt.file.expand('./dev/tools/grunt/tasks/*'),
17+
themes;
18+
19+
filesRouter.set('themes', 'dev/tools/grunt/configs/themes');
20+
themes = filesRouter.get('themes');
1621

1722
tasks = _.map(tasks, function(task){ return task.replace('.js', '') });
1823
tasks.push('time-grunt');

PULL_REQUEST_TEMPLATE.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!--- Provide a general summary of the Pull Request in the Title above -->
2+
3+
### Description
4+
<!--- Provide a description of the changes proposed in the pull request -->
5+
6+
### Fixed Issues (if relevant)
7+
<!--- Provide a list of fixed issues in the format magento/magento2#<issue_number>, if relevant -->
8+
1. magento/magento2#<issue_number>: Issue title
9+
2. ...
10+
11+
### Manual testing scenarios
12+
<!--- Provide a set of unambiguous steps to test the proposed code change -->
13+
1. ...
14+
2. ...
15+
16+
### Contribution checklist
17+
- [ ] Pull request has a meaningful description of its purpose
18+
- [ ] All commits are accompanied by meaningful commit messages
19+
- [ ] All new or changed code is covered with unit/integration tests (if applicable)
20+
- [ ] All automated tests passed successfully (all builds on Travis CI are green)

0 commit comments

Comments
 (0)