diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..d90c2ddb63458dd335868c43fa4219cd108316db --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,12 @@ +include: + - remote: 'https://gitlab.met.tdintern.de/met-public/gitlab-ci-templates/-/raw/master/module/stages.yml' + - remote: 'https://gitlab.met.tdintern.de/met-public/gitlab-ci-templates/-/raw/master/module/merge-request/2.4.4/static-tests.yml' + - remote: 'https://gitlab.met.tdintern.de/met-public/gitlab-ci-templates/-/raw/master/module/merge-request/2.4.4/unit-tests.yml' + - remote: 'https://gitlab.met.tdintern.de/met-public/gitlab-ci-templates/-/raw/master/module/merge-request/2.4.4/integration-tests.yml' + - remote: 'https://gitlab.met.tdintern.de/met-public/gitlab-ci-templates/-/raw/master/module/merge-request/2.4.4/semver-tests.yml' + - remote: 'https://gitlab.met.tdintern.de/met-public/gitlab-ci-templates/-/raw/master/module/nightly-build/2.4/unit-tests.yml' + - remote: 'https://gitlab.met.tdintern.de/met-public/gitlab-ci-templates/-/raw/master/module/nightly-build/2.4/static-tests.yml' + - remote: 'https://gitlab.met.tdintern.de/met-public/gitlab-ci-templates/-/raw/master/module/nightly-build/2.4/integration-tests.yml' + +#variables: +# SEMVER_ALLOWED_CHANGE_LEVEL: 3 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8cdd97d55004e70a98db402c8c57572e18856a41..0000000000000000000000000000000000000000 --- a/.travis.yml +++ /dev/null @@ -1,37 +0,0 @@ -addons: - apt: - sources: - - mysql-8.0-trusty - packages: - - mysql-server - - mysql-client - - rabbitmq-server -services: - - mysql - - rabbitmq - - elasticsearch - -language: php -php: - - 7.4 - - 8.1 - -env: - matrix: - - MAGENTO_VERSION=2.4 - -before_install: - - composer self-update --1 - - git clone --depth=50 --branch=$MAGENTO_VERSION https://github.com/magento/magento2.git /tmp/magento - - mysql -uroot -e 'SET @@global.sql_mode = NO_ENGINE_SUBSTITUTION; CREATE DATABASE magento_integration_tests;' - - mv $(pwd)/install-config-mysql.travis.$MAGENTO_VERSION.php /tmp/magento/dev/tests/integration/etc/install-config-mysql.php - - mkdir -p /tmp/magento/app/code/Firegento - - cp -R $(pwd) /tmp/magento/app/code/Firegento/ContentProvisioning - -install: - - cd /tmp/magento - - composer install --no-interaction - - composer require --dev mikey179/vfsstream - -script: - - php /tmp/magento/vendor/bin/phpunit -c /tmp/magento/app/code/Firegento/ContentProvisioning/Test/Integration/phpunit.travis.xml diff --git a/README.md b/README.md index 26a52a7825c945f545ba35a6f8922a22cebf0539..18de21c63b05aba1ecde986fdfe695580caf5e9a 100644 --- a/README.md +++ b/README.md @@ -2,16 +2,11 @@ This module was developed during a Magento Hackathon organized by FireGento e.V. (https://firegento.com/). -## Supported versions matrix - -Only the latest patch versions of the following Magento versions are covered by test automation. - -### "develop" branch - -| PHP | Magento 2.4 | -|:---: |:---:| -| 7.4 | [](https://travis-ci.org/magento-hackathon/m2-content-provisioning) | -| 8.1 | [](https://travis-ci.org/magento-hackathon/m2-content-provisioning) | +> **ℹ️ Maintenance** +> +> This module is maintained by [TechDivision](https://www.techdivision.com/). Therefore, there we created a mirror repository, which allow us +> to run automated quality checks on our internal infrastructure for this module. Please see https://gitlab.met.tdintern.de/techdivision-public/m2-content-provisioning +> for details. Please feel free to contact us, if you have questions regarding the repository structure or mirroring. ## The idea behind this module diff --git a/Test/Integration/phpunit.dev.xml b/Test/Integration/phpunit.gitlab.xml similarity index 84% rename from Test/Integration/phpunit.dev.xml rename to Test/Integration/phpunit.gitlab.xml index 445cbe14a3d1f8d16b8948540c737bafb22de027..e91b10b8aa6b42023355dd2403fac3a63aab4cf1 100644 --- a/Test/Integration/phpunit.dev.xml +++ b/Test/Integration/phpunit.gitlab.xml @@ -1,6 +1,22 @@ <?xml version="1.0" encoding="UTF-8"?> +<!-- +/** + * Copyright (c) 2022 TechDivision GmbH + * All rights reserved + * + * This product includes proprietary software developed at TechDivision GmbH, Germany + * For more information see http://www.techdivision.com/ + * + * To obtain a valid license for using this software please contact us at + * license@techdivision.com + * + * @copyright Copyright (c) 2022 TechDivision GmbH (http://www.techdivision.com) + * @author Vadim Justus <v.justus@techdivision.com> + * @link http://www.techdivision.com/ + */ + --> <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.2/phpunit.xsd" + xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/9.5/phpunit.xsd" colors="true" columns="max" beStrictAboutTestsThatDoNotTestAnything="false" @@ -26,7 +42,7 @@ <!-- Semicolon-separated 'glob' patterns, that match global XML configuration files --> <const name="TESTS_GLOBAL_CONFIG_DIR" value="../../../app/etc"/> <!-- Whether to cleanup the application before running tests or not --> - <const name="TESTS_CLEANUP" value="disabled"/> + <const name="TESTS_CLEANUP" value="enabled"/> <!-- Memory usage and estimated leaks thresholds --> <!--<const name="TESTS_MEM_USAGE_LIMIT" value="1024M"/>--> <const name="TESTS_MEM_LEAK_LIMIT" value=""/> diff --git a/Test/Integration/phpunit.travis.xml b/Test/Integration/phpunit.travis.xml deleted file mode 100644 index 3e43bbd844b451d33507483748f81d86a788a7f1..0000000000000000000000000000000000000000 --- a/Test/Integration/phpunit.travis.xml +++ /dev/null @@ -1,56 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.2/phpunit.xsd" - colors="true" - columns="max" - beStrictAboutTestsThatDoNotTestAnything="false" - bootstrap="/tmp/magento/dev/tests/integration/framework/bootstrap.php" - stderr="true" -> - <!-- Test suites definition --> - <testsuites> - <testsuite name="Magento Integration Tests"> - <directory suffix="Test.php">.</directory> - </testsuite> - </testsuites> - <!-- PHP INI settings and constants definition --> - <php> - <includePath>.</includePath> - <includePath>/tmp/magento/dev/tests/integration/</includePath> - <ini name="date.timezone" value="America/Los_Angeles"/> - <ini name="xdebug.max_nesting_level" value="200"/> - <!-- Local XML configuration file ('.dist' extension will be added, if the specified file doesn't exist) --> - <const name="TESTS_INSTALL_CONFIG_FILE" value="etc/install-config-mysql.php"/> - <!-- Local XML configuration file ('.dist' extension will be added, if the specified file doesn't exist) --> - <const name="TESTS_GLOBAL_CONFIG_FILE" value="etc/config-global.php"/> - <!-- Semicolon-separated 'glob' patterns, that match global XML configuration files --> - <const name="TESTS_GLOBAL_CONFIG_DIR" value="../../../app/etc"/> - <!-- Whether to cleanup the application before running tests or not --> - <const name="TESTS_CLEANUP" value="enabled"/> - <!-- Memory usage and estimated leaks thresholds --> - <!--<const name="TESTS_MEM_USAGE_LIMIT" value="1024M"/>--> - <const name="TESTS_MEM_LEAK_LIMIT" value=""/> - <!-- Path to Percona Toolkit bin directory --> - <!--<const name="PERCONA_TOOLKIT_BIN_DIR" value=""/>--> - <!-- CSV Profiler Output file --> - <!--<const name="TESTS_PROFILER_FILE" value="profiler.csv"/>--> - <!-- Bamboo compatible CSV Profiler Output file name --> - <!--<const name="TESTS_BAMBOO_PROFILER_FILE" value="profiler.csv"/>--> - <!-- Metrics for Bamboo Profiler Output in PHP file that returns array --> - <!--<const name="TESTS_BAMBOO_PROFILER_METRICS_FILE" value="../../build/profiler_metrics.php"/>--> - <!-- Whether to output all CLI commands executed by the bootstrap and tests --> - <const name="TESTS_EXTRA_VERBOSE_LOG" value="1"/> - <!-- Magento mode for tests execution. Possible values are "default", "developer" and "production". --> - <const name="TESTS_MAGENTO_MODE" value="developer"/> - <!-- Minimum error log level to listen for. Possible values: -1 ignore all errors, and level constants form http://tools.ietf.org/html/rfc5424 standard --> - <const name="TESTS_ERROR_LOG_LISTENER_LEVEL" value="-1"/> - <!-- Connection parameters for MongoDB library tests --> - <!--<const name="MONGODB_CONNECTION_STRING" value="mongodb://localhost:27017"/>--> - <!--<const name="MONGODB_DATABASE_NAME" value="magento_integration_tests"/>--> - </php> - <!-- Test listeners --> - <listeners> - <listener class="Magento\TestFramework\Event\PhpUnit"/> - <listener class="Magento\TestFramework\ErrorLog\Listener"/> - </listeners> -</phpunit> diff --git a/Test/Integration/phpunit.xml b/Test/Integration/phpunit.xml deleted file mode 100644 index e17f0db51b76ef330afaa75ca4f472a74abc699f..0000000000000000000000000000000000000000 --- a/Test/Integration/phpunit.xml +++ /dev/null @@ -1,56 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.2/phpunit.xsd" - colors="true" - columns="max" - beStrictAboutTestsThatDoNotTestAnything="false" - bootstrap="../../../../../dev/tests/integration/framework/bootstrap.php" - stderr="true" -> - <!-- Test suites definition --> - <testsuites> - <testsuite name="Magento Integration Tests"> - <directory suffix="Test.php">.</directory> - </testsuite> - </testsuites> - <!-- PHP INI settings and constants definition --> - <php> - <includePath>.</includePath> - <includePath>../../../../../dev/tests/integration/</includePath> - <ini name="date.timezone" value="America/Los_Angeles"/> - <ini name="xdebug.max_nesting_level" value="200"/> - <!-- Local XML configuration file ('.dist' extension will be added, if the specified file doesn't exist) --> - <const name="TESTS_INSTALL_CONFIG_FILE" value="etc/install-config-mysql.php"/> - <!-- Local XML configuration file ('.dist' extension will be added, if the specified file doesn't exist) --> - <const name="TESTS_GLOBAL_CONFIG_FILE" value="etc/config-global.php"/> - <!-- Semicolon-separated 'glob' patterns, that match global XML configuration files --> - <const name="TESTS_GLOBAL_CONFIG_DIR" value="../../../app/etc"/> - <!-- Whether to cleanup the application before running tests or not --> - <const name="TESTS_CLEANUP" value="disabled"/> - <!-- Memory usage and estimated leaks thresholds --> - <!--<const name="TESTS_MEM_USAGE_LIMIT" value="1024M"/>--> - <const name="TESTS_MEM_LEAK_LIMIT" value=""/> - <!-- Path to Percona Toolkit bin directory --> - <!--<const name="PERCONA_TOOLKIT_BIN_DIR" value=""/>--> - <!-- CSV Profiler Output file --> - <!--<const name="TESTS_PROFILER_FILE" value="profiler.csv"/>--> - <!-- Bamboo compatible CSV Profiler Output file name --> - <!--<const name="TESTS_BAMBOO_PROFILER_FILE" value="profiler.csv"/>--> - <!-- Metrics for Bamboo Profiler Output in PHP file that returns array --> - <!--<const name="TESTS_BAMBOO_PROFILER_METRICS_FILE" value="../../build/profiler_metrics.php"/>--> - <!-- Whether to output all CLI commands executed by the bootstrap and tests --> - <const name="TESTS_EXTRA_VERBOSE_LOG" value="1"/> - <!-- Magento mode for tests execution. Possible values are "default", "developer" and "production". --> - <const name="TESTS_MAGENTO_MODE" value="developer"/> - <!-- Minimum error log level to listen for. Possible values: -1 ignore all errors, and level constants form http://tools.ietf.org/html/rfc5424 standard --> - <const name="TESTS_ERROR_LOG_LISTENER_LEVEL" value="-1"/> - <!-- Connection parameters for MongoDB library tests --> - <!--<const name="MONGODB_CONNECTION_STRING" value="mongodb://localhost:27017"/>--> - <!--<const name="MONGODB_DATABASE_NAME" value="magento_integration_tests"/>--> - </php> - <!-- Test listeners --> - <listeners> - <listener class="Magento\TestFramework\Event\PhpUnit"/> - <listener class="Magento\TestFramework\ErrorLog\Listener"/> - </listeners> -</phpunit>