#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 [email protected]: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 [email protected]: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 [email protected]: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 [email protected]: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;