diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5e4ccebd3..000000000 --- a/.travis.yml +++ /dev/null @@ -1,67 +0,0 @@ -dist: bionic - -addons: - hosts: - - magento2.docker - -git: - depth: false - -services: - - docker - -language: php -php: - - '7.1' - - '7.2' - - '7.3' - - '7.4' - -env: - - TEST_SUITE=functional-ce - - TEST_SUITE=functional-ee FUNCTIONAL_INDEX=1 - - TEST_SUITE=functional-ee FUNCTIONAL_INDEX=2 - - TEST_SUITE=functional-ee FUNCTIONAL_INDEX=3 - - TEST_SUITE=functional-ee FUNCTIONAL_INDEX=4 - - TEST_SUITE=functional-ee FUNCTIONAL_INDEX=5 - - TEST_SUITE=functional-ee FUNCTIONAL_INDEX=6 - -stages: - - test - -jobs: - exclude: - - php: '7.1' - env: TEST_SUITE=functional-ee - - - php: '7.2' - env: TEST_SUITE=functional-ee - - - php: '7.3' - env: TEST_SUITE=functional-ee - - - php: '7.4' - env: TEST_SUITE=functional-ee - -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 "${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 "${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 "${MCD_VERSION_71}" ] && [ $TRAVIS_PHP_VERSION == "7.1" ]; then composer config repositories.mcd git git@github.com:magento/magento-cloud-docker.git && composer require "magento/magento-cloud-docker:${MCD_VERSION_71}" --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 "${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; - - composer update -n --no-suggest - -before_script: - - if [ $TEST_SUITE == "functional-ce" ]; then cp codeception.dist.yml codeception.yml && sed -i "s/REPO_USERNAME/REPO_USERNAME_CE/" codeception.yml && sed -i "s/REPO_PASSWORD/REPO_PASSWORD_CE/" codeception.yml; fi; - -script: - - if [ $TEST_SUITE == "functional-ce" ]; then ./tests/travis/functional_ce.sh; fi; - - if [ $TEST_SUITE == "functional-ee" ] && [ $TRAVIS_SECURE_ENV_VARS == "true" ]; then ./tests/travis/prepare_functional_parallel.sh && ./tests/travis/functional_ee.sh; fi; diff --git a/README.md b/README.md index 51f4778e6..9ce646ee0 100755 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # Magento Commerce Cloud Deployment Tools + [![Build Status](https://travis-ci.com/magento/ece-tools.svg?token=NW7M5gDP5YaRMZyCvYpY&branch=develop)](https://travis-ci.com/magento/ece-tools) ## Welcome diff --git a/tests/travis/functional_ce.sh b/tests/travis/functional_ce.sh deleted file mode 100755 index 9d737da44..000000000 --- a/tests/travis/functional_ce.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash - -# Copyright © Magento, Inc. All rights reserved. -# See COPYING.txt for license details. - -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 edition-ce -x php72 -x php73 -x php74 --steps - ;; - 7.2) - ./vendor/bin/codecept run -g edition-ce -x php71 -x php73 -x php74 --steps - ;; - 7.3) - ./vendor/bin/codecept run -g edition-ce -x php72 -x php71 -x php74 --steps - ;; - 7.4) - ./vendor/bin/codecept run -g edition-ce -x php72 -x php71 -x php73 --steps - ;; -esac diff --git a/tests/travis/functional_ee.sh b/tests/travis/functional_ee.sh deleted file mode 100755 index 08b2b55de..000000000 --- a/tests/travis/functional_ee.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -# Copyright © Magento, Inc. All rights reserved. -# See COPYING.txt for license details. - -set -e -trap '>&2 echo Error: Command \`$BASH_COMMAND\` on line $LINENO failed with exit code $?' ERR - -./vendor/bin/codecept run -g parallel_"${TRAVIS_PHP_VERSION//./}"_"$FUNCTIONAL_INDEX" --steps diff --git a/tests/travis/prepare_functional_parallel.sh b/tests/travis/prepare_functional_parallel.sh deleted file mode 100755 index eb1b6382b..000000000 --- a/tests/travis/prepare_functional_parallel.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash - -# Copyright © Magento, Inc. All rights reserved. -# See COPYING.txt for license details. - -set -e -trap '>&2 echo Error: Command \`$BASH_COMMAND\` on line $LINENO failed with exit code $?' ERR - -php_version="${TRAVIS_PHP_VERSION//./}" - -test_set_list=($(grep -Rl php${php_version} --exclude='*AcceptanceCest.php' --exclude='*AcceptanceCeCest.php' --exclude='*AcceptanceCe71Cest.php' --exclude='*AcceptanceCe72Cest.php' --exclude='*AcceptanceCe73Cest.php' --exclude='*AbstractCest.php' src/Test/Functional/Acceptance | sort)) -group_count=6 - -cp codeception.dist.yml codeception.yml -echo "groups:" >> codeception.yml -echo " parallel_${php_version}_*: tests/functional/_data/parallel_${php_version}_*" >> codeception.yml - -if [[ $php_version == "74" ]]; then - echo "Total = ${#test_set_list[@]};" - echo "Batch #1 = Acceptance" - echo "src/Test/Functional/Acceptance/AcceptanceCest.php" >> "tests/functional/_data/parallel_${php_version}_1.yml" - start_group_id=2 -else - start_group_id=1 -fi - -for((i=0, group_id=start_group_id; i < ${#test_set_list[@]}; i+=1, group_id++)) -do - if [ $group_id -gt $group_count ]; then - group_id=$start_group_id - fi - group_file="tests/functional/_data/parallel_${php_version}_$group_id.yml" - echo "${test_set_list[i]}" >> "$group_file" -done