{"id":266653,"date":"2015-10-23T17:25:01","date_gmt":"2015-10-23T13:25:01","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=266653"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=266653","title":{"rendered":"Magento-\u043c\u043e\u0434\u0443\u043b\u0438 \u0438 Travis CI"},"content":{"rendered":"<p>       \u041a\u0440\u0430\u0442\u043a\u0430\u044f \u0437\u0430\u043c\u0435\u0442\u043a\u0430 \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432, \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Travis CI \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u0434\u043b\u044f Magento \u043e\u0431\u0435\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u0439.<\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<h4>\u041e\u0431\u0449\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f<\/h4>\n<p>  \u041a\u043e\u0434 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439:  <\/p>\n<ul>\n<li>\u041c\u043e\u0434\u0443\u043b\u044c \u0434\u043b\u044f Magento 1: <a href=\"https:\/\/github.com\/flancer32\/sample_mage1_module\">Github<\/a>, <a href=\"https:\/\/travis-ci.org\/flancer32\/sample_mage1_module\">Travis<\/a><\/li>\n<li>\u041c\u043e\u0434\u0443\u043b\u044c \u0434\u043b\u044f Magento 2: <a href=\"https:\/\/github.com\/flancer32\/sample_mage2_module\">Github<\/a>, <a href=\"https:\/\/travis-ci.org\/flancer32\/sample_mage2_module\">Travis<\/a><\/li>\n<\/ul>\n<p>  <a href=\"http:\/\/habrahabr.ru\/post\/268245\/\">\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/a> \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0434\u043b\u044f Magento 2. \u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f Magento 1 \u0432\u0435\u0441\u044c\u043c\u0430 \u043f\u043e\u0445\u043e\u0436\u0435 \u043f\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0443 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f.<\/p>\n<p>  \u041a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0433\u043e\u043b\u043e\u0432\u043d\u044b\u043c \u043c\u043e\u0434\u0443\u043b\u0435\u043c Magento-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f (\u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043f\u043e \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044e \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0433\u043e web-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u043d\u0435\u043c\u0443 \u0434\u0440\u0443\u0433\u0438\u0445 \u043c\u043e\u0434\u0443\u043b\u0435\u0439). \u0420\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0432 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u0442\u0440\u0435\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432:  <\/p>\n<ul>\n<li><b>live<\/b>: \u0434\u043b\u044f \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f (production mode);<\/li>\n<li><b>work<\/b>: \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 (development mode);<\/li>\n<li><b>travis<\/b>: \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u0441\u0440\u0435\u0434\u0435 Travis CI;<\/li>\n<\/ul>\n<p>  \u0412 \u043a\u0430\u0436\u0434\u043e\u043c \u0438\u0437 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 PHP Composer&#8217;\u0430 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0441\u0430\u043c\u043e\u0439 Magento, \u0430 \u0437\u0430\u0442\u0435\u043c \u0432 \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043c\u043e\u043d\u0442\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0444\u0430\u0439\u043b\u044b \u043c\u043e\u0434\u0443\u043b\u0435\u0439 (\u043a\u043e\u043f\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043f\u0440\u0438 live-\u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0438, \u043b\u0438\u043d\u043a\u0443\u044e\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0441\u0438\u043c\u0432\u043e\u043b\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 \u0432 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445). \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0442\u0441\u044f Magento-\u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0442\u043e\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0443\u044e \u0411\u0414, \u0438 SQL-\u0441\u043a\u0440\u0438\u043f\u0442, \u0438\u0437\u043c\u0435\u043d\u044f\u044e\u0449\u0438\u0439 \u0432 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 default&#8217;\u043e\u0432\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0442\u0438\u043f\u0430 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f (\u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u043f\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0441\u0441\u044b\u043b\u043a\u0430\u043c, \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0442.\u043f.).<\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u043b\u043e\u0434\u0438\u0442\u044c \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0435\u0439, \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 (work) \u0438 CI-\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f (travis) \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u043d\u0430\u0431\u043e\u0440 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0434\u043b\u044f \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f:  <\/p>\n<ul>\n<li><b>work\/composer.json<\/b>: \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440 (<a href=\"https:\/\/github.com\/flancer32\/sample_mage1_module\/blob\/master\/work\/composer.json\">\u041c1<\/a> \/ <a href=\"https:\/\/github.com\/flancer32\/sample_mage2_module\/blob\/master\/work\/composer.json\">\u041c2<\/a>) composer-\u043f\u0440\u043e\u0435\u043a\u0442\u0430;<\/li>\n<li><b>work\/cfg\/bin\/deploy\/post_install.sh<\/b>: \u0448\u0430\u0431\u043b\u043e\u043d (<a href=\"https:\/\/github.com\/flancer32\/sample_mage1_module\/blob\/master\/work\/cfg\/bin\/deploy\/post_install.sh\">\u041c1<\/a> \/ <a href=\"https:\/\/github.com\/flancer32\/sample_mage2_module\/blob\/master\/work\/cfg\/bin\/deploy\/post_install.sh\">\u041c2<\/a>) shell-\u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 Magento-\u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0442\u043e\u0440\u0430 \u0438 SQL-\u0441\u043a\u0440\u0438\u043f\u0442\u0430;<\/li>\n<li><b>work\/cfg\/bin\/deploy\/post_install.sql<\/b>: \u0448\u0430\u0431\u043b\u043e\u043d (<a href=\"https:\/\/github.com\/flancer32\/sample_mage1_module\/blob\/master\/work\/cfg\/bin\/deploy\/post_install.sql\">\u041c1<\/a>) SQL-\u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0441 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c\u0438 \u0434\u043b\u044f \u0434\u0435\u0432\u0435\u043b\u043e\u043f\u0435\u0440\u0441\u043a\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f;<\/li>\n<\/ul>\n<p>  \u0421\u0430\u043c\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u043f\u043e\u0434\u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 <b>.\/work\/htdocs\/<\/b>. \u041f\u0440\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0438 \u0432 \u0448\u0430\u0431\u043b\u043e\u043d\u0430\u0445 <b>post_install.sh<\/b> \u0438 <b>post_install.sql<\/b> \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 (placeholders \u2014 \u043f\u0443\u0442\u0438, \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0411\u0414, URL&#8217;\u044b \u0438 \u0442.\u043f.) <a href=\"https:\/\/github.com\/praxigento\/composer_plugin_templates\">\u0437\u0430\u043c\u0435\u0449\u0430\u044e\u0442\u0441\u044f<\/a> \u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u0438\u0437 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 <b>.\/work\/templates.json<\/b> \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043f\u043e\u043c\u0435\u0449\u0430\u044e\u0442\u0441\u044f \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 <b>.\/work\/bin\/deploy\/<\/b>.<\/p>\n<p>  \u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u0441\u0435\u0445 \u043c\u043e\u0434\u0443\u043b\u0435\u0439, \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440\u0430\u0445 PHPUnit:  <\/p>\n<ul>\n<li><b>work\/test\/functional\/phpunit.dist.xml<\/b>: \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440 (<a href=\"https:\/\/github.com\/flancer32\/sample_mage1_module\/blob\/master\/work\/test\/functional\/phpunit.dist.xml\">\u041c1<\/a> \/ <a href=\"https:\/\/github.com\/flancer32\/sample_mage2_module\/blob\/master\/work\/test\/functional\/phpunit.dist.xml\">\u041c2<\/a>) \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0442\u0435\u0441\u0442\u043e\u0432 (\u0441 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u043a \u0411\u0414);<\/li>\n<li><b>work\/test\/unit\/phpunit.dist.xml<\/b>: \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440 (<a href=\"https:\/\/github.com\/flancer32\/sample_mage1_module\/blob\/master\/work\/test\/unit\/phpunit.dist.xml\">\u041c1<\/a> \/ <a href=\"https:\/\/github.com\/flancer32\/sample_mage2_module\/blob\/master\/work\/test\/unit\/phpunit.dist.xml\">\u041c2<\/a>) \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 unit-\u0442\u0435\u0441\u0442\u043e\u0432 (\u0431\u0435\u0437 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u0411\u0414);<\/li>\n<\/ul>\n<h4>CI \u0434\u043b\u044f Magento 1<\/h4>\n<p>  \u0414\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440 \u0434\u043b\u044f Travis&#8217;\u0430:  <\/p>\n<pre><code class=\"bash\">sudo: false # use container-based environment on Travis language: php php:   - 5.6   - hhvm   - '7'  before_install:   - cd work # go to root folder for development environment   - pwd # control current path ('LOCAL_ROOT' in templates.json)   - cp templates.json.travis templates.json # create configuration for Travis from template   - composer self-update  # update composer to prevent error Class 'Composer\\Installer\\PackageEvents' not found in #   ...\/work\/vendor\/aydin-hassan\/magento-core-composer-installer\/src\/CoreManager.php on line 109   - composer install  # install project using PHP Composer   - cat .\/bin\/deploy\/post_install.sh  # control parameters in the installation script   - cat .\/bin\/deploy\/post_install.sql # control parameters in the SQL script   - sh .\/bin\/deploy\/post_install.sh # create initial DB, run SQL script, setup permissions, ...  script:   - phpunit --configuration .\/test\/unit\/phpunit.dist.xml  # run project's unit tests   - phpunit --configuration .\/test\/functional\/phpunit.dist.xml # run project's functional tests <\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0438 \u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043a\u0430\u043a\u0438\u0445-\u043b\u0438\u0431\u043e \u043e\u0441\u043e\u0431\u044b\u0445 \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u043e\u0441\u0442\u0435\u0439 \u043d\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442, \u0432\u0435\u0441\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 3-4 \u043c\u0438\u043d\u0443\u0442.<\/p>\n<h4>CI \u0434\u043b\u044f Magento 2<\/h4>\n<p>  \u0414\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440 \u0434\u043b\u044f Travis&#8217;\u0430:  <\/p>\n<pre><code class=\"bash\">sudo: required # use Travis standard env (http:\/\/docs.travis-ci.com\/user\/ci-environment\/) language: php php:   - 5.6 #  - hhvm # there is an error on DB installation: &quot;Command option 'language': Invalid value. To see possible values, # ... run command 'bin\/magento info:language:list'.&quot;  before_install: # Setup MySQL 5.6 on Ubuntu 12.04 (thanks to drogus - https:\/\/gist.github.com\/drogus\/6718448):   - mysql --version # control version before upgrade   - sudo apt-get remove mysql-common mysql-server-5.5 mysql-server-core-5.5 mysql-client-5.5 mysql-client-core-5.5   - sudo apt-get autoremove   - sudo apt-get install libaio1   - wget -O mysql-5.6.14.deb http:\/\/dev.mysql.com\/get\/Downloads\/MySQL-5.6\/mysql-5.6.14-debian6.0-x86_64.deb\/from\/http:\/\/cdn.mysql.com\/   - sudo dpkg -i mysql-5.6.14.deb   - sudo cp \/opt\/mysql\/server-5.6\/support-files\/mysql.server \/etc\/init.d\/mysql.server   - sudo ln -s \/opt\/mysql\/server-5.6\/bin\/* \/usr\/bin\/ # some config values were changed since 5.5   - sudo sed -i'' 's\/table_cache\/table_open_cache\/' \/etc\/mysql\/my.cnf   - sudo sed -i'' 's\/log_slow_queries\/slow_query_log\/' \/etc\/mysql\/my.cnf   - &quot;sudo sed -i'' 's\/basedir[^=]\\\\+=.*$\/basedir = \\\\\/opt\\\\\/mysql\\\\\/server-5.6\/' \/etc\/mysql\/my.cnf&quot; # there is an error # ... w\/o double quotes: The command &quot;sudo sed -i'' 's\/basedir[^=]\\+=.*$\/basedir = \\\/opt\\\/mysql\\\/server-5.6\/' \/etc\/mysql\/my.cnf&quot; failed and exited with 1 during .   - sudo \/etc\/init.d\/mysql.server start   - mysql --version # control version after upgrade # Deploy Magento 2 application # Go to working folder, copy templates.json for travis and start composer install process   - cd work #  go to root folder for development environment   - pwd # control current path ('LOCAL_ROOT' in templates.json)   - cp templates.json.travis templates.json # create configuration for Travis from template #  - composer self-update # update composer to prevent error Class 'Composer\\Installer\\PackageEvents' not found in #   ...\/work\/vendor\/aydin-hassan\/magento-core-composer-installer\/src\/CoreManager.php on line 109   - composer install # Run post installation script (deploy Magento2 itself)   - cat .\/bin\/deploy\/post_install.sh # control parameters in the installation script   - sh .\/bin\/deploy\/post_install.sh # create initial DB, setup permissions, ...  script:   - phpunit --configuration .\/test\/unit\/phpunit.dist.xml # run project's unit tests   - phpunit --configuration .\/test\/functional\/phpunit.dist.xml # run project's functional tests #  - phpunit --configuration .\/htdocs\/dev\/tests\/unit\/phpunit.xml.dist # run Magento 2 unit tests <\/code><\/pre>\n<p>  \u0421 Magento 2 \u0432\u0441\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0443\u0436\u043d\u043e \u0440\u0435\u0448\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0441 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 MySQL. \u0412 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u043c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0438 Travis&#8217;\u0430 (Ubuntu 12.04) \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u0435\u0440\u0432\u0435\u0440 MySQL 5.5, \u0430 Magento 2 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u0432\u0435\u0440\u0441\u0438\u044e 5.6. \u041f\u043e\u043c\u043e\u0433 <a href=\"https:\/\/gist.github.com\/drogus\/6718448\">\u0441\u043f\u043e\u0441\u043e\u0431<\/a> \u043e\u0442 \u043a\u043e\u043b\u043b\u0435\u0433\u0438 drogus&#8217;\u0430.<\/p>\n<p>  \u0417\u0430\u0442\u0435\u043c \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u043a\u0440\u043e\u043c\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 PHP 5.6 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u043d\u0438\u0433\u0434\u0435 \u043d\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442. \u041d\u0430 PHP 7 \u0440\u0443\u0433\u0430\u0435\u0442\u0441\u044f Magento 2, \u0430 \u043d\u0430 HHVM \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0442\u043e\u0440. \u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 Magento 2, \u043d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 language \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043d\u044b\u0439 (\u00aben_US\u00bb):<\/p>\n<pre><code class=\"bash\">Command option 'language': Invalid value. To see possible values, run command 'bin\/magento info:language:list <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0448\u0438\u0445 \u043d\u0443\u0436\u0434 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u0438 \u043e\u0434\u043d\u043e\u0439 \u0442\u043e\u043b\u044c\u043a\u043e PHP 5.6, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441 HHVM \u0434\u0430\u0436\u0435 \u043d\u0435 \u0441\u0442\u0430\u043b \u0431\u043e\u0440\u043e\u0442\u044c\u0441\u044f.<\/p>\n<p>  \u041c\u043e\u0436\u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0442\u0435\u0441\u0442\u044b \u0441\u0430\u043c\u043e\u0439 Magento 2, \u043d\u043e \u043d\u0430 Travis&#8217;\u0435 \u043e\u043d\u0438 \u0441\u0432\u0430\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043d\u0430 4071-\u043c (\u0438\u0437 15062) \u043f\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u043d\u0435\u0445\u0432\u0430\u0442\u043a\u0438 \u043f\u0430\u043c\u044f\u0442\u0438:  <\/p>\n<pre><code class=\"bash\">.PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 122133 bytes) in \/home\/travis\/build\/flancer32\/sample_mage2_module\/work\/vendor\/phpunit\/phpunit\/src\/Util\/GlobalState.php on line 110 <\/code><\/pre>\n<p>  \u0412\u0435\u0441\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 8-10 \u043c\u0438\u043d\u0443\u0442.               <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/247349\/\"> http:\/\/habrahabr.ru\/post\/247349\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u041a\u0440\u0430\u0442\u043a\u0430\u044f \u0437\u0430\u043c\u0435\u0442\u043a\u0430 \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432, \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Travis CI \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u0434\u043b\u044f Magento \u043e\u0431\u0435\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u0439.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-266653","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/266653","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=266653"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/266653\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=266653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=266653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=266653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}