From b83035746dbf73caaa8d34edbab798814711ee15 Mon Sep 17 00:00:00 2001 From: m-tyrala Date: Wed, 22 Aug 2018 12:24:03 +0200 Subject: [PATCH] EZP-29143 run test features on Demo version without changing feature files --- .travis.yml | 6 ++++-- bin/.travis/trusty/setup_ezplatform.sh | 2 +- .../PlatformDemoEnvironmentConstants.php | 20 +++++++++++++++++++ 3 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 tests/AppBundle/Behat/PlatformDemoEnvironmentConstants.php diff --git a/.travis.yml b/.travis.yml index 4abb05a2..733400bb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,8 +22,10 @@ env: - TEST_CMD="bin/behat -vv --profile=rest --suite=fullXml --tags=~@broken" - TEST_CMD="bin/behat -vv --profile=core --tags=~@broken" - TEST_CMD="bin/phpunit -v vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishRestBundle/Tests/Functional" SYMFONY_CMD="ez:behat:create-language 'pol-PL' 'Polish (polski)'" - - TEST_CMD="bin/behat -vv --profile=platformui --tags='@common'" COMPOSE_FILE="doc/docker/base-dev.yml:doc/docker/selenium.yml" - - TEST_CMD="bin/behat -vv --profile=platformui --tags='@common'" COMPOSE_FILE="doc/docker/base-dev.yml:doc/docker/varnish.yml:doc/docker/redis.yml:doc/docker/selenium.yml" WEB_HOST="varnish" + - TEST_CMD="bin/behat -vv --profile=adminui --suite=adminui" COMPOSE_FILE="doc/docker/base-dev.yml:doc/docker/selenium.yml" + - TEST_CMD="bin/behat -vv --profile=adminui --suite=adminui --tags=~@EZP-29291-excluded" COMPOSE_FILE="doc/docker/base-dev.yml:doc/docker/varnish.yml:doc/docker/redis.yml:doc/docker/selenium.yml" WEB_HOST="varnish" + - TEST_CMD="bin/behat -vv --profile=repository-forms" COMPOSE_FILE="doc/docker/base-dev.yml:doc/docker/selenium.yml" + # test only master (+ Pull requests) branches: diff --git a/bin/.travis/trusty/setup_ezplatform.sh b/bin/.travis/trusty/setup_ezplatform.sh index 62963c9c..8d967ece 100755 --- a/bin/.travis/trusty/setup_ezplatform.sh +++ b/bin/.travis/trusty/setup_ezplatform.sh @@ -91,7 +91,7 @@ if [[ -n "${DEPENDENCY_PACKAGE_NAME}" ]]; then fi echo '> Run composer install inside docker app container' -docker-compose exec app sh -c 'composer install --no-suggest --no-progress --no-interaction --prefer-dist --optimize-autoloader' +docker-compose exec app sh -c 'php -d memory_limit='3G' /usr/local/bin/composer install --no-suggest --no-progress --no-interaction --prefer-dist --optimize-autoloader' # for behat builds to work echo '> Change ownership of files inside docker container' diff --git a/tests/AppBundle/Behat/PlatformDemoEnvironmentConstants.php b/tests/AppBundle/Behat/PlatformDemoEnvironmentConstants.php new file mode 100644 index 00000000..63d0a699 --- /dev/null +++ b/tests/AppBundle/Behat/PlatformDemoEnvironmentConstants.php @@ -0,0 +1,20 @@ +values['ROOT_CONTENT_NAME'] = 'Home'; + $this->values['ARTICLE_MAIN_FIELD_NAME'] = 'Summary'; + $this->values['CREATE_REGISTRATION_ROLE_POLICIES'] = 'user/login,content/read,tags/read'; + $this->values['REGISTRATION_CONFIRMATION_MESSAGE'] = 'Registration completed'; + } +} \ No newline at end of file