Skip to content

Commit

Permalink
Merge branch '6.13' into 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
andrerom committed Aug 21, 2018
2 parents 9099159 + 87c7b3d commit 4e3e6b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 21 deletions.
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ branches:
- /^\d.\d+$/

# setup requirements for running unit/integration/behat tests
before_script:
before_install:
# Disable memory_limit for composer
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
# Install igbinary & lzf PHP extensions if necessary
Expand All @@ -74,6 +74,12 @@ before_script:
- TEST_TIMEZONES=("America/New_York" "Asia/Calcutta" "UTC")
- TEST_TIMEZONE=${TEST_TIMEZONES["`shuf -i 0-2 -n 1`"]}

install:
- if [ "$TEST_CONFIG" != "" ] ; then travis_retry composer install --no-progress --no-interaction --prefer-dist ; fi
# Setup Solr / Elastic search if asked for
- if [ "$TEST_CONFIG" = "phpunit-integration-legacy-elasticsearch.xml" ] ; then ./bin/.travis/init_elasticsearch.sh ; fi
- if [ "$TEST_CONFIG" = "phpunit-integration-legacy-solr.xml" ] ; then ./vendor/ezsystems/ezplatform-solr-search-engine/bin/.travis/init_solr.sh; fi

# execute phpunit or behat as the script command
script:
- if [ "$TEST_CONFIG" != "" ] ; then php -d date.timezone=$TEST_TIMEZONE -d memory_limit=-1 vendor/bin/phpunit -c $TEST_CONFIG ; fi
Expand Down
20 changes: 0 additions & 20 deletions bin/.travis/prepare_unittest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,10 @@ if [ "$DB" = "postgresql" ] ; then psql -c "CREATE DATABASE testdb;" -U postgres
# Setup GitHub key to avoid api rate limit (pure auth read only key, no rights, for use by ezsystems repos only!)
composer config -g github-oauth.github.com "d0285ed5c8644f30547572ead2ed897431c1fc09"

COMPOSER_UPDATE=""

# solr package search API integration tests
if [ "$TEST_CONFIG" = "phpunit-integration-legacy-solr.xml" ] ; then
echo "> Require ezsystems/ezplatform-solr-search-engine:^1.3.0@dev"
composer require --no-update ezsystems/ezplatform-solr-search-engine:^1.3.0@dev
COMPOSER_UPDATE="true"

# Because of either some changes in travis, composer or git, composer is not able to pick version for "self" on inclusion of solr anymore, so we force it:
export COMPOSER_ROOT_VERSION=`php -r 'echo json_decode(file_get_contents("./composer.json"), true)["extra"]["branch-alias"]["dev-tmp_ci_branch"];'`
fi

# Switch to another Symfony version if asked for
Expand All @@ -61,18 +55,4 @@ if [ "$SYMFONY_VERSION" != "" ] ; then
# Remove php-cs-fixer as it is not needed for these tests and tends to cause Symfony version conflicts
echo "> Remove php-cs-fixer"
composer remove --dev --no-update friendsofphp/php-cs-fixer
COMPOSER_UPDATE="true"
fi

# Install packages with composer update if asked for to make sure not use composer.lock if present
if [ "$COMPOSER_UPDATE" = "true" ] ; then
echo "> Install dependencies through Composer (using update as other packages was requested)"
composer update --no-progress --no-interaction --prefer-dist
else
echo "> Install dependencies through Composer"
composer install --no-progress --no-interaction --prefer-dist
fi

# Setup Solr / Elastic search if asked for
if [ "$TEST_CONFIG" = "phpunit-integration-legacy-elasticsearch.xml" ] ; then ./bin/.travis/init_elasticsearch.sh ; fi
if [ "$TEST_CONFIG" = "phpunit-integration-legacy-solr.xml" ] ; then ./vendor/ezsystems/ezplatform-solr-search-engine/bin/.travis/init_solr.sh; fi

0 comments on commit 4e3e6b4

Please sign in to comment.