diff --git a/.travis.yml b/.travis.yml index 9c62b41..8d402b0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,10 +20,6 @@ jobs: include: - stage: static-unit script: ./tests/travis/static-unit.sh; - php: '7.0' - env: - - TEST_SUITE=static-unit - - script: ./tests/travis/static-unit.sh; php: '7.1' env: - TEST_SUITE=static-unit @@ -50,6 +46,10 @@ jobs: - php: '7.3' env: - TEST_SUITE=functional-ee + - php: '7.4' + dist: bionic + env: + - TEST_SUITE=functional-ee - php: '7.1' env: - TEST_SUITE=functional-ce @@ -64,12 +64,22 @@ jobs: - php: '7.3' env: - TEST_SUITE=functional-ce + - php: '7.4' + dist: bionic + env: + - TEST_SUITE=functional-ce install: - composer config http-basic.repo.magento.com ${REPO_USERNAME_CE} ${REPO_PASSWORD_CE} - composer config github-oauth.github.com ${GITHUB_TOKEN} - if [ -n "${MCD_VERSION}" ] && [ $TRAVIS_PHP_VERSION != "7.0" ]; then composer config repositories.mcd git git@github.com:magento/magento-cloud-docker.git && composer require "magento/magento-cloud-docker:${MCD_VERSION}" --no-update; fi; - if [ -n "${MQP_VERSION}" ]; then composer config repositories.mqp git git@github.com:magento/quality-patches.git && composer require "magento/quality-patches:${MQP_VERSION}" --no-update; fi; + - if [ -n "${MCC_VERSION}" ]; then composer config repositories.mcc git git@github.com:magento/magento-cloud-components.git && composer require "magento/magento-cloud-components:${MCC_VERSION}" --no-update; fi; + - if [ -n "${ECE_VERSION}" ]; then composer config repositories.ece git git@github.com:magento/ece-tools.git && composer require "magento/ece-tools:${ECE_VERSION}" --no-update; fi; + - composer config repositories.magento composer https://repo.magento.com/ + - composer require "magento/framework:*" --no-update + - composer require "magento/module-store:*" --no-update + - composer require "magento/module-url-rewrite:*" --no-update - composer update -n --no-suggest before_script: diff --git a/src/Test/Functional/Acceptance/AbstractCest.php b/src/Test/Functional/Acceptance/AbstractCest.php index 64f489b..e893f87 100644 --- a/src/Test/Functional/Acceptance/AbstractCest.php +++ b/src/Test/Functional/Acceptance/AbstractCest.php @@ -40,6 +40,7 @@ protected function prepareTemplate(\CliTester $I, string $templateVersion, strin $I->addEceDockerGitRepoToComposer(); $I->addQualityPatchesGitRepoToComposer(); $I->addEceToolsGitRepoToComposer(); + $I->addCloudComponentsGitRepoToComposer(); $I->addDependencyToComposer('magento/magento-cloud-patches', '1.0.99'); $I->addDependencyToComposer( 'magento/magento-cloud-docker', @@ -50,7 +51,14 @@ protected function prepareTemplate(\CliTester $I, string $templateVersion, strin $I->getDependencyVersion('magento/quality-patches') ); - $I->addDependencyToComposer('magento/ece-tools', 'dev-develop as 2002.1.99'); + $I->addDependencyToComposer( + 'magento/magento-cloud-components', + $I->getDependencyVersion('magento/magento-cloud-components') + ); + $I->addDependencyToComposer( + 'magento/ece-tools', + $I->getDependencyVersion('magento/ece-tools') + ); if ($this->edition === 'CE' || $magentoVersion) { $version = $magentoVersion ?: $this->getVersionRangeForMagento($I); diff --git a/src/Test/Functional/Acceptance/Acceptance73CeCest.php b/src/Test/Functional/Acceptance/Acceptance73CeCest.php new file mode 100644 index 0000000..d25e180 --- /dev/null +++ b/src/Test/Functional/Acceptance/Acceptance73CeCest.php @@ -0,0 +1,19 @@ + '2.3.3', 'magentoVersion' => '2.3.3'], + ['templateVersion' => '2.3.3', 'magentoVersion' => '2.3.3-p1'], + ['templateVersion' => '2.3.4', 'magentoVersion' => '2.3.4'], + ['templateVersion' => '2.3.4', 'magentoVersion' => '2.3.4-p2'], + ['templateVersion' => '2.3.5', 'magentoVersion' => '2.3.5'], + ['templateVersion' => '2.3.5', 'magentoVersion' => '2.3.5-p1'], + ['templateVersion' => '2.4.0', 'magentoVersion' => '2.4.0'], + ]; + } +} diff --git a/src/Test/Functional/Acceptance/AcceptanceCeCest.php b/src/Test/Functional/Acceptance/AcceptanceCeCest.php index cdf0e2d..dd234d4 100644 --- a/src/Test/Functional/Acceptance/AcceptanceCeCest.php +++ b/src/Test/Functional/Acceptance/AcceptanceCeCest.php @@ -8,7 +8,7 @@ namespace Magento\CloudPatches\Test\Functional\Acceptance; /** - * @group php73ce + * @group php74ce */ class AcceptanceCeCest extends AcceptanceCest { diff --git a/src/Test/Functional/Acceptance/AcceptanceCest.php b/src/Test/Functional/Acceptance/AcceptanceCest.php index f0fd048..b8fcfc8 100644 --- a/src/Test/Functional/Acceptance/AcceptanceCest.php +++ b/src/Test/Functional/Acceptance/AcceptanceCest.php @@ -49,12 +49,7 @@ public function testPatches(\CliTester $I, \Codeception\Example $data): void protected function patchesDataProvider(): array { return [ - ['templateVersion' => '2.3.3', 'magentoVersion' => '2.3.3'], - ['templateVersion' => '2.3.3', 'magentoVersion' => '2.3.3-p1'], - ['templateVersion' => '2.3.4', 'magentoVersion' => '2.3.4'], - ['templateVersion' => '2.3.4', 'magentoVersion' => '2.3.4-p2'], - ['templateVersion' => '2.3.5', 'magentoVersion' => '2.3.5'], - ['templateVersion' => '2.3.5', 'magentoVersion' => '2.3.5-p1'], + ['templateVersion' => '2.4.0', 'magentoVersion' => '2.4.0'], ['templateVersion' => 'master'], ]; } diff --git a/tests/travis/functional-ce.sh b/tests/travis/functional-ce.sh index ab0e3f7..a543161 100755 --- a/tests/travis/functional-ce.sh +++ b/tests/travis/functional-ce.sh @@ -16,4 +16,7 @@ case $TRAVIS_PHP_VERSION in 7.3) ./vendor/bin/codecept run -g php73ce --steps ;; + 7.4) + ./vendor/bin/codecept run -g php74ce --steps + ;; esac diff --git a/tests/travis/functional-ee.sh b/tests/travis/functional-ee.sh index 467b6f1..b2761f7 100755 --- a/tests/travis/functional-ee.sh +++ b/tests/travis/functional-ee.sh @@ -16,4 +16,7 @@ case $TRAVIS_PHP_VERSION in 7.3) ./vendor/bin/codecept run -g php73 --steps ;; + 7.4) + ./vendor/bin/codecept run -g php74 --steps + ;; esac