Skip to content

Commit 7f6bdee

Browse files
authored
Merge pull request #1 from magento/develop
upstream on patch
2 parents 7f864dd + a5b4aea commit 7f6bdee

File tree

10,393 files changed

+216396
-85964
lines changed

Some content is hidden

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

10,393 files changed

+216396
-85964
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
atlassian*
77
/nbproject
88
/sitemap
9+
/sitemap.xml
910
/.idea
1011
/.gitattributes
1112
/app/config_sandbox
@@ -22,6 +23,8 @@ atlassian*
2223
/lib/internal/flex/varien/.settings
2324
/node_modules
2425
/.grunt
26+
/Gruntfile.js
27+
/package.json
2528

2629
/pub/media/*.*
2730
!/pub/media/.htaccess

.htaccess

Lines changed: 46 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@
44

55
# SetEnv MAGE_MODE developer
66

7-
############################################
8-
## overrides default umask value to allow using different
9-
## file permissions
10-
11-
# SetEnv MAGE_UMASK 022
12-
137
############################################
148
## uncomment these lines for CGI mode
159
## make sure to specify the correct cgi php binary file name
@@ -39,7 +33,6 @@
3933
DirectoryIndex index.php
4034

4135
<IfModule mod_php5.c>
42-
4336
############################################
4437
## adjust memory limit
4538

@@ -61,11 +54,8 @@
6154
## disable user agent verification to not break multiple image upload
6255

6356
php_flag suhosin.session.cryptua off
64-
6557
</IfModule>
66-
6758
<IfModule mod_php7.c>
68-
6959
############################################
7060
## adjust memory limit
7161

@@ -87,9 +77,7 @@
8777
## disable user agent verification to not break multiple image upload
8878

8979
php_flag suhosin.session.cryptua off
90-
9180
</IfModule>
92-
9381
<IfModule mod_security.c>
9482
###########################################
9583
## disable POST processing to not break multiple image upload
@@ -107,7 +95,7 @@
10795
# Insert filter on all content
10896
###SetOutputFilter DEFLATE
10997
# Insert filter on selected content types only
110-
#AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript
98+
#AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/x-javascript application/json image/svg+xml
11199

112100
# Netscape 4.x has some problems...
113101
#BrowserMatch ^Mozilla/4 gzip-only-text/html
@@ -196,6 +184,7 @@
196184

197185
AddDefaultCharset Off
198186
#AddDefaultCharset UTF-8
187+
AddType 'text/html; charset=UTF-8' html
199188

200189
<IfModule mod_expires.c>
201190

@@ -211,7 +200,7 @@
211200

212201
###########################################
213202
## Deny access to root files to hide sensitive application information
214-
RedirectMatch 404 /\.git
203+
RedirectMatch 403 /\.git
215204

216205
<Files composer.json>
217206
order allow,deny
@@ -281,9 +270,52 @@
281270
order allow,deny
282271
deny from all
283272
</Files>
273+
<Files magento_umask>
274+
order allow,deny
275+
deny from all
276+
</Files>
277+
278+
# For 404s and 403s that aren't handled by the application, show plain 404 response
279+
ErrorDocument 404 /pub/errors/404.php
280+
ErrorDocument 403 /pub/errors/404.php
284281

285282
################################
286283
## If running in cluster environment, uncomment this
287284
## http://developer.yahoo.com/performance/rules.html#etags
288285

289286
#FileETag none
287+
288+
# ######################################################################
289+
# # INTERNET EXPLORER #
290+
# ######################################################################
291+
292+
# ----------------------------------------------------------------------
293+
# | Document modes |
294+
# ----------------------------------------------------------------------
295+
296+
# Force Internet Explorer 8/9/10 to render pages in the highest mode
297+
# available in the various cases when it may not.
298+
#
299+
# https://hsivonen.fi/doctype/#ie8
300+
#
301+
# (!) Starting with Internet Explorer 11, document modes are deprecated.
302+
# If your business still relies on older web apps and services that were
303+
# designed for older versions of Internet Explorer, you might want to
304+
# consider enabling `Enterprise Mode` throughout your company.
305+
#
306+
# https://msdn.microsoft.com/en-us/library/ie/bg182625.aspx#docmode
307+
# http://blogs.msdn.com/b/ie/archive/2014/04/02/stay-up-to-date-with-enterprise-mode-for-internet-explorer-11.aspx
308+
309+
<IfModule mod_headers.c>
310+
311+
Header set X-UA-Compatible "IE=edge"
312+
313+
# `mod_headers` cannot match based on the content-type, however,
314+
# the `X-UA-Compatible` response header should be send only for
315+
# HTML documents and not for the other resources.
316+
317+
<FilesMatch "\.(appcache|atom|bbaw|bmp|crx|css|cur|eot|f4[abpv]|flv|geojson|gif|htc|ico|jpe?g|js|json(ld)?|m4[av]|manifest|map|mp4|oex|og[agv]|opus|otf|pdf|png|rdf|rss|safariextz|svgz?|swf|topojson|tt[cf]|txt|vcard|vcf|vtt|webapp|web[mp]|webmanifest|woff2?|xloc|xml|xpi)$">
318+
Header unset X-UA-Compatible
319+
</FilesMatch>
320+
321+
</IfModule>

.htaccess.sample

Lines changed: 46 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232

3333
DirectoryIndex index.php
3434

35-
<IfModule mod_php5.c>
36-
3735
############################################
3836
## adjust memory limit
3937

@@ -56,34 +54,6 @@
5654

5755
php_flag suhosin.session.cryptua off
5856

59-
</IfModule>
60-
61-
<IfModule mod_php7.c>
62-
63-
############################################
64-
## adjust memory limit
65-
66-
php_value memory_limit 768M
67-
php_value max_execution_time 18000
68-
69-
############################################
70-
## disable automatic session start
71-
## before autoload was initialized
72-
73-
php_flag session.auto_start off
74-
75-
############################################
76-
## enable resulting html compression
77-
78-
#php_flag zlib.output_compression on
79-
80-
###########################################
81-
## disable user agent verification to not break multiple image upload
82-
83-
php_flag suhosin.session.cryptua off
84-
85-
</IfModule>
86-
8757
<IfModule mod_security.c>
8858
###########################################
8959
## disable POST processing to not break multiple image upload
@@ -101,7 +71,7 @@
10171
# Insert filter on all content
10272
###SetOutputFilter DEFLATE
10373
# Insert filter on selected content types only
104-
#AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript
74+
#AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/x-javascript application/json image/svg+xml
10575

10676
# Netscape 4.x has some problems...
10777
#BrowserMatch ^Mozilla/4 gzip-only-text/html
@@ -190,6 +160,7 @@
190160

191161
AddDefaultCharset Off
192162
#AddDefaultCharset UTF-8
163+
AddType 'text/html; charset=UTF-8' html
193164

194165
<IfModule mod_expires.c>
195166

@@ -205,7 +176,7 @@
205176

206177
###########################################
207178
## Deny access to root files to hide sensitive application information
208-
RedirectMatch 404 /\.git
179+
RedirectMatch 403 /\.git
209180

210181
<Files composer.json>
211182
order allow,deny
@@ -275,9 +246,52 @@
275246
order allow,deny
276247
deny from all
277248
</Files>
249+
<Files magento_umask>
250+
order allow,deny
251+
deny from all
252+
</Files>
253+
254+
# For 404s and 403s that aren't handled by the application, show plain 404 response
255+
ErrorDocument 404 /pub/errors/404.php
256+
ErrorDocument 403 /pub/errors/404.php
278257

279258
################################
280259
## If running in cluster environment, uncomment this
281260
## http://developer.yahoo.com/performance/rules.html#etags
282261

283262
#FileETag none
263+
264+
# ######################################################################
265+
# # INTERNET EXPLORER #
266+
# ######################################################################
267+
268+
# ----------------------------------------------------------------------
269+
# | Document modes |
270+
# ----------------------------------------------------------------------
271+
272+
# Force Internet Explorer 8/9/10 to render pages in the highest mode
273+
# available in the various cases when it may not.
274+
#
275+
# https://hsivonen.fi/doctype/#ie8
276+
#
277+
# (!) Starting with Internet Explorer 11, document modes are deprecated.
278+
# If your business still relies on older web apps and services that were
279+
# designed for older versions of Internet Explorer, you might want to
280+
# consider enabling `Enterprise Mode` throughout your company.
281+
#
282+
# https://msdn.microsoft.com/en-us/library/ie/bg182625.aspx#docmode
283+
# http://blogs.msdn.com/b/ie/archive/2014/04/02/stay-up-to-date-with-enterprise-mode-for-internet-explorer-11.aspx
284+
285+
<IfModule mod_headers.c>
286+
287+
Header set X-UA-Compatible "IE=edge"
288+
289+
# `mod_headers` cannot match based on the content-type, however,
290+
# the `X-UA-Compatible` response header should be send only for
291+
# HTML documents and not for the other resources.
292+
293+
<FilesMatch "\.(appcache|atom|bbaw|bmp|crx|css|cur|eot|f4[abpv]|flv|geojson|gif|htc|ico|jpe?g|js|json(ld)?|m4[av]|manifest|map|mp4|oex|og[agv]|opus|otf|pdf|png|rdf|rss|safariextz|svgz?|swf|topojson|tt[cf]|txt|vcard|vcf|vtt|webapp|web[mp]|webmanifest|woff2?|xloc|xml|xpi)$">
294+
Header unset X-UA-Compatible
295+
</FilesMatch>
296+
297+
</IfModule>

.php_cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ return Symfony\CS\Config\Config::create()
3333
'extra_empty_lines',
3434
'include',
3535
'join_function',
36-
'multiline_array_trailing_comma',
3736
'namespace_no_leading_whitespace',
3837
'new_with_braces',
3938
'object_operator',

.travis.yml

Lines changed: 24 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,37 @@
11
sudo: required
22
dist: trusty
3-
3+
addons:
4+
apt:
5+
packages:
6+
- mysql-server-5.6
7+
- mysql-client-core-5.6
8+
- mysql-client-5.6
9+
- postfix
410
language: php
511
php:
6-
- 5.5
712
- 5.6
813
- 7.0
914
env:
10-
- TEST_SUITE=unit
11-
- TEST_SUITE=integration_part_1
12-
- TEST_SUITE=integration_part_2
13-
- TEST_SUITE=integration_integrity
14-
- TEST_SUITE=static
15+
global:
16+
- COMPOSER_BIN_DIR=~/bin
17+
- INTEGRATION_SETS=3
18+
matrix:
19+
- TEST_SUITE=unit
20+
- TEST_SUITE=integration INTEGRATION_INDEX=1
21+
- TEST_SUITE=integration INTEGRATION_INDEX=2
22+
- TEST_SUITE=integration INTEGRATION_INDEX=3
23+
- TEST_SUITE=static
1524
cache:
1625
apt: true
17-
directories:
18-
- $HOME/.composer/cache
19-
- $HOME/.cache/bin
26+
directories: $HOME/.composer/cache
2027
matrix:
2128
exclude:
22-
- php: 5.6
23-
env: TEST_SUITE=static
2429
- php: 7.0
2530
env: TEST_SUITE=static
26-
before_install:
27-
- sudo apt-get update -qq
28-
- sudo apt-get install -y -qq postfix
29-
- sh -c 'if [ "$CASHER_DIR" ]; then
30-
if [ -x $HOME/.cache/bin/composer ]; then
31-
$HOME/.cache/bin/composer self-update; echo '';
32-
else
33-
mkdir -p $HOME/.cache/bin;
34-
curl --connect-timeout 30 -sS https://getcomposer.org/installer
35-
| php -- --install-dir $HOME/.cache/bin/ --filename composer;
36-
fi
37-
fi'
38-
- export PATH="$HOME/.cache/bin:$PATH"
39-
before_script:
40-
# Mock mail
41-
- sudo service postfix stop
42-
- smtp-sink -d "%d.%H.%M.%S" localhost:2500 1000 &
43-
- echo 'sendmail_path = "/usr/sbin/sendmail -t -i "' > $(php --ini|grep -m 1 "ini files in:"|cut -d ":" -f 2)/sendmail.ini
44-
# Disable xDebug
45-
- echo '' > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
46-
# Install MySQL 5.6, create DB for integration tests
47-
- >
48-
sh -c "if [ '$TEST_SUITE' = 'integration_part_1' ] || [ '$TEST_SUITE' = 'integration_part_2' ] || [ '$TEST_SUITE' = 'integration_integrity' ]; then
49-
sudo apt-get remove -y -qq --purge mysql-common mysql-server-5.5 mysql-server-core-5.5 mysql-client-5.5 mysql-client-core-5.5;
50-
sudo apt-get -y -qq autoremove;
51-
sudo apt-get -y -qq autoclean;
52-
sudo apt-get install -y -qq mysql-server-5.6 mysql-client-5.6;
53-
mysql -uroot -e 'SET @@global.sql_mode = NO_ENGINE_SUBSTITUTION; CREATE DATABASE magento_integration_tests;';
54-
mv dev/tests/integration/etc/install-config-mysql.travis.php.dist dev/tests/integration/etc/install-config-mysql.php;
55-
fi"
56-
# Change memory_limit for travis
57-
- echo 'memory_limit = -1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
58-
- phpenv rehash;
59-
- composer install --no-interaction --prefer-dist
60-
script:
61-
# Unit tests
62-
- sh -c "if [ '$TEST_SUITE' = 'unit' ]; then ./vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist; fi"
63-
# Integration tests
64-
- sh -c "if [ '$TEST_SUITE' = 'integration_part_1' ] || [ '$TEST_SUITE' = 'integration_part_2' ]; then cd dev/tests/integration/; bash IntegationTestsForTravis.sh 2; fi"
65-
- sh -c "if [ '$TEST_SUITE' = 'integration_part_1' ]; then cd dev/tests/integration/; ./../../../vendor/bin/phpunit -c phpunit.xml.travis1; fi"
66-
- sh -c "if [ '$TEST_SUITE' = 'integration_part_2' ]; then cd dev/tests/integration/; ./../../../vendor/bin/phpunit -c phpunit.xml.travis2; fi"
67-
# Integration integrity tests
68-
- sh -c "if [ '$TEST_SUITE' = 'integration_integrity' ]; then cd dev/tests/integration/; ./../../../vendor/bin/phpunit -c phpunit.xml.dist testsuite/Magento/Test/Integrity; fi"
69-
# Static tests [Code Style]
70-
- sh -c "if [ '$TEST_SUITE' = 'static' ]; then cd dev/tests/static/; php get_github_changes.php --output-file='$TRAVIS_BUILD_DIR/dev/tests/static/testsuite/Magento/Test/_files/changed_files_ce.txt' --base-path='$TRAVIS_BUILD_DIR' --repo='https://github.com/magento/magento2.git' --branch='develop'; ./../../../vendor/bin/phpunit -c phpunit.xml.dist --filter 'Magento\\\\Test\\\\Php\\\\LiveCodeTest'; fi"
31+
before_install: ./dev/travis/before_install.sh
32+
install: composer install --no-interaction --prefer-dist
33+
before_script: ./dev/travis/before_script.sh
34+
script:
35+
- cd dev/tests/$TEST_SUITE
36+
- test $TEST_SUITE = "static" && TEST_FILTER='--filter "Magento\\Test\\Php\\LiveCodeTest"' || true
37+
- phpunit $TEST_FILTER

.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

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2.1.0
2+
=============
3+
To get detailed information about changes in Magento 2.1.0, please visit [Magento Community Edition (CE) Release Notes](http://devdocs.magento.com/guides/v2.1/release-notes/ReleaseNotes2.1.0CE.html "Magento Community Edition (CE) Release Notes")
4+
15
2.0.0
26
=============
37
* Fixed bugs:

0 commit comments

Comments
 (0)