Skip to content

Commit 72c66ca

Browse files
committed
Merge branch 'develop' of github.corp.magento.com:magento2/magento2ce into Troll-PR
2 parents 3956bb2 + 5f5bd4f commit 72c66ca

File tree

153 files changed

+1487
-1066
lines changed

Some content is hidden

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

153 files changed

+1487
-1066
lines changed

Diff for: .htaccess.sample

+27-28
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
############################################
2-
## overrides deployment configuration mode value
3-
## use command bin/magento deploy:mode:set to switch modes
4-
5-
# SetEnv MAGE_MODE developer
2+
## Optional override of deployment mode. We recommend you use the
3+
## command bin/magento deploy:mode:set to switch modes instead
4+
# SetEnv MAGE_MODE default # or production or developer
65

76
############################################
8-
## uncomment these lines for CGI mode
9-
## make sure to specify the correct cgi php binary file name
7+
## Uncomment these lines for CGI mode.
8+
## Make sure to specify the correct cgi php binary file name
109
## it might be /cgi-bin/php-cgi
1110

1211
# Action php5-cgi /cgi-bin/php5-cgi
@@ -17,42 +16,42 @@
1716

1817
# Options -MultiViews
1918

20-
## you might also need to add this line to php.ini
19+
## You might also need to add this line to php.ini
2120
## cgi.fix_pathinfo = 1
22-
## if it still doesn't work, rename php.ini to php5.ini
21+
## If it still doesn't work, rename php.ini to php5.ini
2322

2423
############################################
25-
## this line is specific for 1and1 hosting
24+
## This line is specific for 1and1 hosting
2625

2726
#AddType x-mapp-php5 .php
2827
#AddHandler x-mapp-php5 .php
2928

3029
############################################
31-
## default index file
30+
## Default index file
3231

3332
DirectoryIndex index.php
3433

3534
<IfModule mod_php5.c>
3635

3736
############################################
38-
## adjust memory limit
37+
## Adjust memory limit
3938

4039
php_value memory_limit 768M
4140
php_value max_execution_time 18000
4241

4342
############################################
44-
## disable automatic session start
43+
## Disable automatic session start
4544
## before autoload was initialized
4645

4746
php_flag session.auto_start off
4847

4948
############################################
50-
## enable resulting html compression
49+
## Enable resulting html compression
5150

5251
#php_flag zlib.output_compression on
5352

5453
###########################################
55-
## disable user agent verification to not break multiple image upload
54+
## Disable user agent verification to not break multiple image upload
5655

5756
php_flag suhosin.session.cryptua off
5857

@@ -61,32 +60,32 @@
6160
<IfModule mod_php7.c>
6261

6362
############################################
64-
## adjust memory limit
63+
## Adjust memory limit
6564

6665
php_value memory_limit 768M
6766
php_value max_execution_time 18000
6867

6968
############################################
70-
## disable automatic session start
69+
## Disable automatic session start
7170
## before autoload was initialized
7271

7372
php_flag session.auto_start off
7473

7574
############################################
76-
## enable resulting html compression
75+
## Enable resulting html compression
7776

7877
#php_flag zlib.output_compression on
7978

8079
###########################################
81-
## disable user agent verification to not break multiple image upload
80+
## Disable user agent verification to not break multiple image upload
8281

8382
php_flag suhosin.session.cryptua off
8483

8584
</IfModule>
8685

8786
<IfModule mod_security.c>
8887
###########################################
89-
## disable POST processing to not break multiple image upload
88+
## Disable POST processing to not break multiple image upload
9089

9190
SecFilterEngine Off
9291
SecFilterScanPOST Off
@@ -95,7 +94,7 @@
9594
<IfModule mod_deflate.c>
9695

9796
############################################
98-
## enable apache served files compression
97+
## Enable apache served files compression
9998
## http://developer.yahoo.com/performance/rules.html#gzip
10099

101100
# Insert filter on all content
@@ -123,14 +122,14 @@
123122
<IfModule mod_ssl.c>
124123

125124
############################################
126-
## make HTTPS env vars available for CGI mode
125+
## Make HTTPS env vars available for CGI mode
127126

128127
SSLOptions StdEnvVars
129128

130129
</IfModule>
131130

132131
############################################
133-
## workaround for Apache 2.4.6 CentOS build when working via ProxyPassMatch with HHVM (or any other)
132+
## Workaround for Apache 2.4.6 CentOS build when working via ProxyPassMatch with HHVM (or any other)
134133
## Please, set it on virtual host configuration level
135134

136135
## SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
@@ -139,19 +138,19 @@
139138
<IfModule mod_rewrite.c>
140139

141140
############################################
142-
## enable rewrites
141+
## Enable rewrites
143142

144143
Options +FollowSymLinks
145144
RewriteEngine on
146145

147146
############################################
148-
## you can put here your magento root folder
147+
## You can put here your magento root folder
149148
## path relative to web root
150149

151150
#RewriteBase /magento/
152151

153152
############################################
154-
## workaround for HTTP authorization
153+
## Workaround for HTTP authorization
155154
## in CGI environment
156155

157156
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
@@ -163,21 +162,21 @@
163162
RewriteRule .* - [L,R=405]
164163

165164
############################################
166-
## redirect for mobile user agents
165+
## Redirect for mobile user agents
167166

168167
#RewriteCond %{REQUEST_URI} !^/mobiledirectoryhere/.*$
169168
#RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
170169
#RewriteRule ^(.*)$ /mobiledirectoryhere/ [L,R=302]
171170

172171
############################################
173-
## never rewrite for existing files, directories and links
172+
## Never rewrite for existing files, directories and links
174173

175174
RewriteCond %{REQUEST_FILENAME} !-f
176175
RewriteCond %{REQUEST_FILENAME} !-d
177176
RewriteCond %{REQUEST_FILENAME} !-l
178177

179178
############################################
180-
## rewrite everything else to index.php
179+
## Rewrite everything else to index.php
181180

182181
RewriteRule .* index.php [L]
183182

Diff for: .travis.yml

+23-54
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,39 @@
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:
612
- 5.5
713
- 5.6
814
- 7.0
915
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
16+
global:
17+
- COMPOSER_BIN_DIR=~/bin
18+
- INTEGRATION_SETS=2
19+
matrix:
20+
- TEST_SUITE=unit
21+
- TEST_SUITE=integration INTEGRATION_INDEX=1
22+
- TEST_SUITE=integration INTEGRATION_INDEX=2
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:
2229
- php: 5.6
2330
env: TEST_SUITE=static
2431
- php: 7.0
2532
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"
33+
before_install: ./dev/travis/before_install.sh
34+
install: composer install --no-interaction --prefer-dist
35+
before_script: ./dev/travis/before_script.sh
36+
script:
37+
- cd dev/tests/$TEST_SUITE
38+
- test $TEST_SUITE = "static" && TEST_FILTER='--filter "Magento\\Test\\Php\\LiveCodeTest"' || true
39+
- phpunit $TEST_FILTER

Diff for: Gruntfile.js.sample

+4-9
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,11 @@ module.exports = function (grunt) {
1212
path = require('path'),
1313
themes = require('./dev/tools/grunt/configs/themes'),
1414
configDir = './dev/tools/grunt/configs',
15-
taskDir = './dev/tools/grunt/tasks';
15+
tasks = grunt.file.expand('./dev/tools/grunt/tasks/*');
1616

17-
[
18-
taskDir + '/mage-minify',
19-
taskDir + '/deploy',
20-
taskDir + '/black-list-generator',
21-
taskDir + '/clean-black-list',
22-
taskDir + '/static',
23-
'time-grunt'
24-
].forEach(function (task) {
17+
tasks = _.map(tasks, function(task){ return task.replace('.js', '') });
18+
tasks.push('time-grunt');
19+
tasks.forEach(function (task) {
2520
require(task)(grunt);
2621
});
2722

Diff for: app/code/Magento/AdminNotification/Model/System/Message/Baseurl.php

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
use Magento\Store\Model\Store;
1010

11+
/**
12+
* @deprecated
13+
*/
1114
class Baseurl implements \Magento\Framework\Notification\MessageInterface
1215
{
1316
/**

0 commit comments

Comments
 (0)