diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 608336be..00000000 --- a/.travis.yml +++ /dev/null @@ -1,84 +0,0 @@ -dist: xenial - -git: - depth: false - -addons: - hosts: - - magento2.docker - -services: - - docker - -language: php - -stages: - - static-integrity - - functional - -jobs: - include: - - stage: static-integrity - script: ./tests/travis/static-integrity.sh; - php: '7.3' - env: - - TEST_SUITE=static-integrity - - stage: functional - php: '7.2' - env: - - TEST_SUITE=functional-b2b - - php: '7.3' - env: - - TEST_SUITE=functional-b2b - - PART_INDEX=1 - - php: '7.3' - env: - - TEST_SUITE=functional-b2b - - PART_INDEX=2 - - php: '7.4' - dist: bionic - env: - - TEST_SUITE=functional-b2b - - php: '7.2' - env: - - TEST_SUITE=functional-ce - - php: '7.3' - env: - - TEST_SUITE=functional-ce - - PART_INDEX=1 - - php: '7.3' - env: - - TEST_SUITE=functional-ce - - PART_INDEX=2 - - php: '7.4' - dist: bionic - env: - - TEST_SUITE=functional-ce - -before_install: - # https://github.com/kylekatarnls/update-helper/issues/9 - - if [ -n "${COMPOSER_VERSION}" ]; then travis_retry composer self-update ${COMPOSER_VERSION}; fi; - -install: - - phpenv config-add travis.php.ini - - 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}" ]; 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 "${MCP_VERSION}" ]; then composer config repositories.mcp git git@github.com:magento/magento-cloud-patches.git && composer require "magento/magento-cloud-patches:${MCP_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: - - sudo sysctl -w vm.max_map_count=262144 - - cp codeception.dist.yml codeception.yml - - sed -i "s/https:\/\/github.com\/magento\/magento-cloud-patches.git/https:\/\/github.com\/magento\/magento-cloud-patches.git/" codeception.yml - - if [ $TEST_SUITE == "functional-ce" ]; then sed -i "s/REPO_USERNAME/REPO_USERNAME_CE/" codeception.yml && sed -i "s/REPO_PASSWORD/REPO_PASSWORD_CE/" codeception.yml; fi; - -script: - - if [ $TRAVIS_SECURE_ENV_VARS == "true" ] && [ $TEST_SUITE == "functional-b2b" ]; then ./tests/travis/functional-b2b.sh; fi; - - if [ $TEST_SUITE == "functional-ce" ]; then ./tests/travis/functional-ce.sh; fi; diff --git a/tests/travis/functional-b2b.sh b/tests/travis/functional-b2b.sh deleted file mode 100755 index a34a5cb5..00000000 --- a/tests/travis/functional-b2b.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash - -# © Copyright 2013-present Adobe. All rights reserved. -# -# This file is licensed under OSL 3.0 or your existing commercial license or subscription -# agreement with Magento or its Affiliates (the "Agreement). -# -# You may obtain a copy of the OSL 3.0 license at http://opensource.org/licenses/osl-3.0.php Open -# Software License (OSL 3.0) or by contacting engcom@adobe.com for a copy. -# -# Subject to your payment of fees and compliance with the terms and conditions of the Agreement, -# the Agreement supersedes the OSL 3.0 license with respect to this file. - -set -e -trap '>&2 echo Error: Command \`$BASH_COMMAND\` on line $LINENO failed with exit code $?' ERR - -case $TRAVIS_PHP_VERSION in - 7.1) - ./vendor/bin/codecept run -g php71Part$PART_INDEX --steps - ;; - 7.2) - ./vendor/bin/codecept run -g php72 --steps - ;; - 7.3) - ./vendor/bin/codecept run -g php73Part$PART_INDEX --steps - ;; - 7.4) - ./vendor/bin/codecept run -g php74 --steps - ;; -esac diff --git a/tests/travis/functional-ce.sh b/tests/travis/functional-ce.sh deleted file mode 100755 index f77934e7..00000000 --- a/tests/travis/functional-ce.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash - -# © Copyright 2013-present Adobe. All rights reserved. -# -# This file is licensed under OSL 3.0 or your existing commercial license or subscription -# agreement with Magento or its Affiliates (the "Agreement). -# -# You may obtain a copy of the OSL 3.0 license at http://opensource.org/licenses/osl-3.0.php Open -# Software License (OSL 3.0) or by contacting engcom@adobe.com for a copy. -# -# Subject to your payment of fees and compliance with the terms and conditions of the Agreement, -# the Agreement supersedes the OSL 3.0 license with respect to this file. - -set -e -trap '>&2 echo Error: Command \`$BASH_COMMAND\` on line $LINENO failed with exit code $?' ERR - -case $TRAVIS_PHP_VERSION in - 7.1) - ./vendor/bin/codecept run -g php71cePart$PART_INDEX --steps - ;; - 7.2) - ./vendor/bin/codecept run -g php72ce --steps - ;; - 7.3) - ./vendor/bin/codecept run -g php73cePart$PART_INDEX --steps - ;; - 7.4) - ./vendor/bin/codecept run -g php74ce --steps - ;; -esac diff --git a/tests/travis/static-integrity.sh b/tests/travis/static-integrity.sh deleted file mode 100755 index 3b5ca38a..00000000 --- a/tests/travis/static-integrity.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash - -# © Copyright 2013-present Adobe. All rights reserved. -# -# This file is licensed under OSL 3.0 or your existing commercial license or subscription -# agreement with Magento or its Affiliates (the "Agreement). -# -# You may obtain a copy of the OSL 3.0 license at http://opensource.org/licenses/osl-3.0.php Open -# Software License (OSL 3.0) or by contacting engcom@adobe.com for a copy. -# -# Subject to your payment of fees and compliance with the terms and conditions of the Agreement, -# the Agreement supersedes the OSL 3.0 license with respect to this file. - -set -e -trap '>&2 echo Error: Command \`$BASH_COMMAND\` on line $LINENO failed with exit code $?' ERR - -./vendor/bin/phpcs ./src --standard=./tests/static/phpcs-ruleset.xml -p -n -./vendor/bin/phpmd ./src xml ./tests/static/phpmd-ruleset.xml -./vendor/bin/phpunit --configuration ./tests/integrity diff --git a/travis.php.ini b/travis.php.ini deleted file mode 100644 index 4ed7788e..00000000 --- a/travis.php.ini +++ /dev/null @@ -1 +0,0 @@ -memory_limit = 4G \ No newline at end of file