-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/develop' into develop
# Conflicts: # app/code/Magento/ConfigurableProduct/Model/Product/Type/Configurable.php
- Loading branch information
Showing
26,696 changed files
with
465,636 additions
and
184,624 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
/** | ||
* Pre-commit hook installation: | ||
* vendor/bin/static-review.php hook:install dev/tools/Magento/Tools/StaticReview/pre-commit .git/hooks/pre-commit | ||
*/ | ||
$finder = PhpCsFixer\Finder::create() | ||
->name('*.phtml') | ||
->exclude('dev/tests/functional/generated') | ||
->exclude('dev/tests/functional/var') | ||
->exclude('dev/tests/functional/vendor') | ||
->exclude('dev/tests/integration/tmp') | ||
->exclude('dev/tests/integration/var') | ||
->exclude('lib/internal/Cm') | ||
->exclude('lib/internal/Credis') | ||
->exclude('lib/internal/Less') | ||
->exclude('lib/internal/LinLibertineFont') | ||
->exclude('pub/media') | ||
->exclude('pub/static') | ||
->exclude('setup/vendor') | ||
->exclude('var'); | ||
|
||
return PhpCsFixer\Config::create() | ||
->setFinder($finder) | ||
->setRules([ | ||
'@PSR2' => true, | ||
'array_syntax' => ['syntax' => 'short'], | ||
'concat_space' => ['spacing' => 'one'], | ||
'include' => true, | ||
'new_with_braces' => true, | ||
'no_empty_statement' => true, | ||
'no_extra_consecutive_blank_lines' => true, | ||
'no_leading_import_slash' => true, | ||
'no_leading_namespace_whitespace' => true, | ||
'no_multiline_whitespace_around_double_arrow' => true, | ||
'no_multiline_whitespace_before_semicolons' => true, | ||
'no_singleline_whitespace_before_semicolons' => true, | ||
'no_trailing_comma_in_singleline_array' => true, | ||
'no_unused_imports' => true, | ||
'no_whitespace_in_blank_line' => true, | ||
'object_operator_without_whitespace' => true, | ||
'ordered_imports' => true, | ||
'standardize_not_equals' => true, | ||
'ternary_operator_spaces' => true, | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,64 @@ | ||
sudo: required | ||
dist: trusty | ||
group: edge | ||
addons: | ||
apt: | ||
packages: | ||
- mysql-server-5.6 | ||
- mysql-client-core-5.6 | ||
- mysql-client-5.6 | ||
- postfix | ||
firefox: "46.0" | ||
hosts: | ||
- magento2.travis | ||
language: php | ||
php: | ||
- 5.6 | ||
- 7.0 | ||
- 7.1 | ||
env: | ||
global: | ||
- COMPOSER_BIN_DIR=~/bin | ||
- INTEGRATION_SETS=3 | ||
- NODE_JS_VERSION=6 | ||
- MAGENTO_HOST_NAME="magento2.travis" | ||
matrix: | ||
- TEST_SUITE=unit | ||
- TEST_SUITE=static | ||
- TEST_SUITE=js GRUNT_COMMAND=spec | ||
- TEST_SUITE=js GRUNT_COMMAND=static | ||
- TEST_SUITE=integration INTEGRATION_INDEX=1 | ||
- TEST_SUITE=integration INTEGRATION_INDEX=2 | ||
- TEST_SUITE=integration INTEGRATION_INDEX=3 | ||
- TEST_SUITE=static | ||
cache: | ||
apt: true | ||
directories: $HOME/.composer/cache | ||
- TEST_SUITE=functional ACCEPTANCE_INDEX=1 | ||
- TEST_SUITE=functional ACCEPTANCE_INDEX=2 | ||
matrix: | ||
exclude: | ||
- php: 7.0 | ||
env: TEST_SUITE=static | ||
- php: 7.0 | ||
env: TEST_SUITE=js GRUNT_COMMAND=spec | ||
- php: 7.0 | ||
env: TEST_SUITE=js GRUNT_COMMAND=static | ||
- php: 7.0 | ||
env: TEST_SUITE=functional ACCEPTANCE_INDEX=1 | ||
- php: 7.0 | ||
env: TEST_SUITE=functional ACCEPTANCE_INDEX=2 | ||
cache: | ||
apt: true | ||
directories: | ||
- $HOME/.composer/cache | ||
- $HOME/.nvm | ||
- $HOME/node_modules | ||
- $HOME/yarn.lock | ||
before_install: ./dev/travis/before_install.sh | ||
install: composer install --no-interaction --prefer-dist | ||
before_script: ./dev/travis/before_script.sh | ||
script: | ||
- cd dev/tests/$TEST_SUITE | ||
script: | ||
# Set arguments for variants of phpunit based tests; '|| true' prevents failing script when leading test fails | ||
- test $TEST_SUITE = "static" && TEST_FILTER='--filter "Magento\\Test\\Php\\LiveCodeTest"' || true | ||
- phpunit $TEST_FILTER | ||
- test $TEST_SUITE = "functional" && TEST_FILTER='dev/tests/functional/testsuites/Magento/Mtf/TestSuite/InjectableTests.php' || true | ||
|
||
# The scripts for grunt/phpunit type tests | ||
- if [ $TEST_SUITE == "functional" ]; then dev/tests/functional/vendor/phpunit/phpunit/phpunit -c dev/tests/$TEST_SUITE $TEST_FILTER; fi | ||
- if [ $TEST_SUITE != "functional" ] && [ $TEST_SUITE != "js" ]; then phpunit -c dev/tests/$TEST_SUITE $TEST_FILTER; fi | ||
- if [ $TEST_SUITE == "js" ]; then grunt $GRUNT_COMMAND; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Contributor Covenant Code of Conduct | ||
|
||
## Our Pledge | ||
|
||
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. | ||
|
||
## Our Standards | ||
|
||
Examples of behavior that contributes to creating a positive environment include: | ||
|
||
* Using welcoming and inclusive language | ||
* Being respectful of differing viewpoints and experiences | ||
* Gracefully accepting constructive criticism | ||
* Focusing on what is best for the community | ||
* Showing empathy towards other community members | ||
|
||
Examples of unacceptable behavior by participants include: | ||
|
||
* The use of sexualized language or imagery and unwelcome sexual attention or advances | ||
* Trolling, insulting/derogatory comments, and personal or political attacks | ||
* Public or private harassment | ||
* Publishing others' private information, such as a physical or electronic address, without explicit permission | ||
* Other conduct which could reasonably be considered inappropriate in a professional setting | ||
|
||
## Our Responsibilities | ||
|
||
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. | ||
|
||
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. | ||
|
||
## Scope | ||
|
||
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. | ||
|
||
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. | ||
|
||
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. | ||
|
||
## Attribution | ||
|
||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] | ||
|
||
[homepage]: http://contributor-covenant.org | ||
[version]: http://contributor-covenant.org/version/1/4/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
Copyright © 2013-2017 Magento, Inc. | ||
|
||
Each Magento source file included in this distribution is licensed under OSL 3.0 or the Magento Enterprise Edition (MEE) license | ||
|
||
http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | ||
Please see LICENSE.txt for the full text of the OSL 3.0 license or contact [email protected] for a copy. | ||
|
||
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. | ||
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. | ||
Please see LICENSE_EE.txt for the full text of the MEE License or visit http://magento.com/legal/terms/enterprise. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!--- Provide a general summary of the Pull Request in the Title above --> | ||
|
||
### Description | ||
<!--- Provide a description of the changes proposed in the pull request --> | ||
|
||
### Fixed Issues (if relevant) | ||
<!--- Provide a list of fixed issues in the format magento/magento2#<issue_number>, if relevant --> | ||
1. magento/magento2#<issue_number>: Issue title | ||
2. ... | ||
|
||
### Manual testing scenarios | ||
<!--- Provide a set of unambiguous steps to test the proposed code change --> | ||
1. ... | ||
2. ... | ||
|
||
### Contribution checklist | ||
- [ ] Pull request has a meaningful description of its purpose | ||
- [ ] All commits are accompanied by meaningful commit messages | ||
- [ ] All new or changed code is covered with unit/integration tests (if applicable) | ||
- [ ] All automated tests passed successfully (all builds on Travis CI are green) |
Oops, something went wrong.